main = do
  s <- getContents
  let ss = init . lines $ s
  mapM_ (print . calc . words) ss

calc :: [String] -> Int
calc [x,"+",y] = read x + read y
calc [x,"-",y] = read x - read y
calc [x,"*",y] = read x * read y
calc [x,"/",y] = read x `div` read y