When working with numbers that are really big, it is common to use scientific notation to shorten their representation. In scientific notation, numbers are written in the form:
Where is a decimal number between and , which we will always round to two decimal places, and is an integer. For example:
We can also convert numbers out of scientific notation, rounding if needed. For example:
Given a number in either decimal notation or scientific notation, convert the number to its alternate form.
Input
Each test case contains one number represented either in decimal or scientific notation. is guaranteed to fit in a 32-bit integer.
Output
For each test case, output in scientific notation if is in decimal notation or output in decimal notation if it is in scientific notation.
Sample Input
987
Sample Output
9.87 * 10^2
Sample Input
1.21 * 10^3
Sample Output
1210
Comments