302440: CF470C. Eval
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
C. Evaltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
You are given a simple arithmetic expression of the form a?b, where a and b are integer constants, and ? can be one of the following operations: '+' (addition), '-' (subtraction), '*' (multiplication), '/' (integer division) or '%' (modulo operation).
Output the result of evaluation of this expression.
InputThe input is a single line containing an expression a?b. Here a and b are integers between 1 and 999, inclusive; ? is an operation character: '+', '-' (ASCII code 45), '*', '/' or '%'.
OutputOutput a single integer — the result of evaluation of this expression.
ExamplesInput123+456Output
579Input
192/5Output
38Input
945%19Output
14