Problem list
Log in
#coci00103 · COCI 2008/2009 Contest 6

Buka

Bronze III 1.0 s 32 MB

Quite often there is substantial noise in the classroom during class. Instead of paying attention to what the teacher is saying, the students rather discuss the economic crisis or Croatia's joining the European Union.

The biggest noise often occurs when the students are idle, so teachers will give them tasks with a lot of work to calm them down. In one type of such task, the student must calculate the result of an arithmetic operation on two large numbers.

The arithmetic operations we will consider are adding and multiplication. The operands will be powers of $10$ with no more than $100$ digits.

Write a program that calculates the result of the operation.

Input

The first line contains a positive integer $A$, the first operand.

The second line contains either the character + or *, representing addition or multiplication.

The third line contains a positive integer $B$, the second operand.

The integers $A$ and $B$ will be powers of $10$ and consist of at most $100$ digits.

Output

Output the result of the operation.

Example 1

Input
1000
*
100
Output
100000

Example 2

Input
10000
+
10
Output
10010

Example 3

Input
10
+
1000
Output
1010

Example 4

Input
1
*
1000
Output
1000
Source
COCI 2008/2009 Contest 6
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 1 Acceptance 100% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code