Scanf.scanf "%d" (fun i -> let f x = if x = 2 then 2 else if x mod 2 = 0 then 5 * x - 16 else 5 * x - 10 in Printf.printf "%d\n" @@ f i );;