import Numeric

func :: Int -> String -> Int -> Int
func a op b | op == "+" = a + b
			| op == "-" = a - b
			| op == "*" = a * b
			| op == "/" = a `div` b
			| otherwise = 0

main = do
	exprs <- init . map words . lines <$> getContents
	let ans = [ (func ((read::String->Int) (x!!0)) (x!!1) ((read::String->Int) (x!!2))) | x<-exprs ]
	mapM_ putStrLn $ (map show) ans