题目描述
Problem Description
Given two integers, each with no more than 100 digits and being powers of 10, you need to compute their product or sum.
Input Format
The input consists of three lines.
The first and third lines each contain an integer, representing the numbers to be calculated. The second line contains a character, either * (multiplication) or + (addition), indicating the operation to be performed. The data is generated under Windows, so be aware of the $\r$ suffix.
Output Format
Output a single line containing an integer, representing the result of the operation.
Sample Input and Output
Sample Input #1
1000
*
100
Sample Output #1
100000
Sample Input #2
10000
+
10
Sample Output #2
10010
Sample Input #3
10
+
1000
Sample Output #3
1010
Sample Input #4
1
*
1000
Sample Output #4
1000
Notes
Translated from COCI2008-2009 CONTEST #6 T1 BUKA.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
1000
*
100
样例输出
100000