let cal x op y =
	match op with
	|"+" -> x + y
	|"-" -> x - y
	|"*" -> x * y
	|"/" -> x / y
	|_ -> 0;;

let rec loop () =
	Scanf.sscanf(read_line()) "%d %s %d" (fun x op y -> if op <> "?" then (Printf.printf "%d\n" (cal x op y);loop()) else ());;

loop ();;

