import Control.Applicative ((<$>), (<*>))
import Control.Monad
import Data.List

main :: IO ()
main = do
  solve <$> getl words >>= print

solve :: [String] -> Int
solve [a, op, b]
  | op == "+" = (read a) + (read b)
  | otherwise = (read a) - (read b)

getl :: (String -> a) -> IO a
getl f = f <$> getLine
