Limits 1s, 512 MB

After getting his heart broken multiple times Tyrion really lost his mind. But Varys thought a brain like Tyrion should not be wasted. He advised him to focus on using his brain for the welfare of the realm and soon time will heal his pain.

Varys convinces Tyrion to travel with him to Meereen. On the way, Tyrion was getting really bored. He started to ask how many days until they reach Meereen, again and again.

Varys told him it has been NN days since they started the journey and they have crossed one-third of the distance.

So can you find out how many days until they reach Meereen? Considering them to move at a constant speed.


The input will contain a single integer NN.

1N1051 \leq N \leq 10^5


Print an integer D, the number of days until they reach Meereen.




Login to submit.


99% Solution Ratio
ToooonmoyEarliest, Nov '22
mdshadeshFastest, 0.0s
Kuddus.6068Lightest, 4.9 MB
TheDunnoGuyShortest, 28B
Toph uses cookies. By continuing you agree to our Cookie Policy.