let () = let a, b, c = Scanf.scanf "%d\n%d\n%d\n" (fun a b c -> a, b, c) in let lst = [("A", a); ("B", b); ("C", c)] in let sort_lst = List.fast_sort (fun (_,a) (_,b) -> if a < b then 1 else if a > b then -1 else 0) lst in List.iter (fun (name,_) -> Printf.printf "%s\n" name) sort_lst