let () =
  let rec aux u =
    let i = read_line () in
    let a,op,b = Scanf.sscanf i "%d %s %d" (fun a op b ->  a,op,b) in
    if op="?" then ()
    else aux (print_endline (string_of_int
                               (if op = "+"      then a+b
                                else if op = "-" then a-b
                                else if op = "*" then a*b
                                else a/b)))
  in aux ()