14230 - String computation   

Description

This is Advanced Question for HW1.

Write a program that calculates the value of the input string.

Hint: You may need to use "if" and "split()" to solve the problem.

Input

Given a line of input containing a string including:

operand1operatoroperand2

The operand will be a combination of numbers and alphabets.

The operator will be one of {+, -, *, /, %}.

Output

Please ignore the alphabets and do the calculation. The output is to print the formula and the answer.

operand1(without alphabets) operator operand2(without alphabets)

Note that '/' should be rounded down to the nearest whole digit.

Sample Input  Download

Sample Output  Download

Tags




Discuss