A - Addition and Subtraction Easy
Editorial
/


Time Limit: 2 sec / Memory Limit: 256 MiB
配点 : 点
問題文
joisinoお姉ちゃんは、 という式の値を計算したいと思っています。
ここで、 は整数で、 は、+
または -
の記号です。
あなたの仕事は、joisinoお姉ちゃんの代わりにこれを求めるプログラムを作ることです。
制約
- は、
+
または-
の記号である。
入力
入力は以下の形式で標準入力から与えられる。
出力
式の値を出力せよ。
入力例 1Copy
Copy
1 + 2
出力例 1Copy
Copy
3
なので を出力します。
入力例 2Copy
Copy
5 - 7
出力例 2Copy
Copy
-2
Score : points
Problem Statement
Joisino wants to evaluate the formula " ".
Here, and are integers, and the binary operator is either +
or -
.
Your task is to evaluate the formula instead of her.
Constraints
- is either
+
or-
.
Input
The input is given from Standard Input in the following format:
Output
Evaluate the formula and print the result.
Sample Input 1Copy
Copy
1 + 2
Sample Output 1Copy
Copy
3
Since , the output should be .
Sample Input 2Copy
Copy
5 - 7
Sample Output 2Copy
Copy
-2