let rec loop () =
  try
    let line = read_line () in
    let sum = Scanf.sscanf line "%d %d" (fun a b -> a + b) in
    print_endline @@ string_of_int @@ sum;
    loop ()
  with End_of_file -> ()

let () = loop ()