#P5720. 【深基4.例4】一尺之棰

【深基4.例4】一尺之棰

Problem Description

In Zhuangzi, it is said: “A one-chi stick, take half of it each day, and it will never be exhausted.” On the first day, there is a wooden stick of length aa. Starting from the second day, each day you saw off half of the stick (divide by 22 each time, rounding down). On which day will the length of the stick become 11?

Input Format

Input a positive integer aa, representing the length of the stick.

Output Format

Output a positive integer, representing on which day the length of the stick will become 11.

100
7

Hint

Constraints: 1a1091 \le a \le 10^9.

Translated by ChatGPT 5