Calculator#1394

Calculator

1 second
64 megabytes
Hard

A calculator works with numbers of at most digits and evaluates expressions according to the following syntax:

\includegraphics{https://static.e-olymp.com/content/0b/0b029e3c85c582ebe8fc60d7800b5115584ab59a.jpg}

The supported operations are: (addition), (subtraction), (multiplication), and (integer division, whose result is the integer part of the quotient). The calculator aborts its operation in the following cases: division by zero; the result of any operation is negative or exceeds digits; any input number exceeds digits.

Input

Each input line consists of one or more expressions, possibly separated across several lines or combined on the same line. An expression can contain up to operators and is syntactically correct. Spaces may appear anywhere in the input. The input ends with the end-of-file symbol.

Output

For each input expression, print its value on a separate output line. If the calculator aborts the evaluation, print Error in the corresponding line, as shown in the provided sample.

Examples

Example 1

Loading
Loading

Note

No sample input or output was provided in the statement.