A - Addition and Subtraction Easy
Editorial
/


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