e = false;
while (s = gets) && !e do
  array = s.split(" ");
  a = array[0].to_i;
  op = array[1];
  b = array[2].to_i;

  if op == "+" then
    puts (a + b).to_s;
  elsif op == "-" then
    puts (a - b).to_s;
  elsif op == "*" then
    puts (a * b).to_s;
  elsif op == "/" then
    puts (a / b).to_s;
  elsif op == "?" then
    e = true;
  end
end