In the Sciences, people often use SI (the International System of Units) prefixes to make it more concise descriptions of measurements. For example, instead of 100000 m, it is more convenient to say 100 km.

In fact, there are many different unit prefixes, but we focus on these in this task:

Prefix Decimal
k (kilo) $10^3$
M (mega) $10^6$
G (giga) $10^9$
T (tera) $10^{12}$

Then: 1 km = 1000 m, 1 Mm = 1000 km, 1 Gm = 1000 Mm, and 1 Tm = 1000 Gm.

In this problem, you are given a length in meters. What is the same length expressed concisely using unit prefixes? We say the expression X [unit prefix]m is concise if $X$ is an integer and $1 \le X \lt 1000$.

Input

The input will be of the form X m, representing a length measurement. $X$ will be an integer expressible in the form $a \times 10^b$, where $a$ is an integer satisfying $1 \le a \lt 10$. Also, $1 \le X \le 10^{14}$.

Output

Output the length in the concise format described above, followed by the unit of length with/without prefix.

Sample Test Cases

Input Output
500000 m 500 km
40 m 40 m
Click to copy.

Scoring: Per Subtask
Authored by s16f22