#38Easy
Calculator
Time: 1 s · Memory: 256 MB
- Conditionals
Statement
You are given two integers with an operator between them: +, -, * or /. Perform the operation.
Addition, subtraction and multiplication give an integer. Division gives a real number: print it with exactly 2 digits after the decimal point (for example, 3.50 for 7 / 2).
Input format
A single line, separated by spaces: an integer , the operator, an integer (; for division).
Output format
A single number — the result.
Examples
Input
6 * 8
Output
48
Input
7 / 2
Output
3.50
Note
Read the operator as a string or a character (char): C++ — cin >> a >> op >> b, Python — a, op, b = input().split().
— you need long long in C++ and int64 in Go.
