Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Corona Virus Attacked Kittuk

By SrijonKumar · Limits 500ms, 512 MB

A large number of people are being infected with the Corona virus in Kittuk country. In that situation, the government of that country decided to tell a fake and small number to the nation so that they do not panic. So if people ask for number of infected patients, the Government tells them $f(n)$ instead of $n$. As you are a pro programmer, the government engaged you to calculate $f(x)$.

$f \Big(n \Big) = \begin{cases} f \bigg( \displaystyle{\frac{n}{10}} \bigg) & \text{ iff n mod 10 = 0} \\ n & \text{otherwise} \end{cases}$

Input

You will be given an integer $n$ $ \Big(100 \leq n \leq 10^{9999} \Big)$ as input.

Output

You need to print $f(n)$ and at the next line you need to print “Stay at Home” without quotes

Sample

InputOutput
123456785547880
12345678554788
Stay at Home

Discussion

Statistics


74% Solution Ratio

fsshakkhorEarliest, 3M ago

nuipqiunFastest, 0.0s

dxty84Lightest, 0 B

mdvirusShortest, 42B

Submit

Login to submit

Editorial

You just need to remove all $0$’s from the end of $n$.

Related Contests