{-
ITP1_4-C
Computation - Simple Calculator
Time Limit : 1 sec, Memory Limit : 65536 KB
?¨???????

???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´??????????°???°?????\??????????????¨????????????????¨????????????¨????????????
Input

??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????

a op b

op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
Output

?????????????????????????????????????¨??????????????????????????????????????????????
Constraints

    0 ??? a, b ??? 20000
    0 ?????????????????????????????????????????¨?????????????????????

Sample Input

1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0

Sample Output

3
38
26
10
108
-}
 
import Data.List.Split
import Text.Regex
import Text.Regex.Posix
main = do
  s <- getLine
  if  s =~  "0 \\? 0" :: Bool then return()
    else do
      putStrLn $ (aux s)
      main
  
aux :: String -> String
aux s = ans
  where
    f = splitOn " " s
    a = read (f!!0) :: Int
    op= f!!1
    b = read (f!!2) :: Int
    ans = 
      case op of
        "?" ->  ""
        "+" -> show $ a + b
        "-" -> show $ a - b
        "*" -> show $ a * b
        "/" -> show $ a `div` b