let a = ref 0 and b = ref 0 in
    Scanf.sscanf (read_line ()) "%d %d" (fun x y -> a := x; b := y);
    if !b - !a >= 0 then print_string ((string_of_int !a) ^ "\n") else print_string ((string_of_int (!a - 1)) ^ "\n")