let one_to_nine = function | 1 -> 9 | 9 -> 1 | x -> x
let _ =
	let a, b, c = Scanf.scanf "%1d%1d%1d\n" (fun a b c -> a, b, c) in
    print_int @@ one_to_nine a;
    print_int @@ one_to_nine b;
    print_int @@ one_to_nine c