import sys
N = int(sys.stdin.readline())
S = N
count = 0
while True:
N = (N % 10) * 10 + (N // 10 + N % 10) % 10
count += 1
if N == S:
print(count)
break
else:
continue
'๐ Python > ๋ฐฑ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [3052]๋๋จธ์ง (0) | 2022.03.05 |
|---|---|
| [10818]์ต์, ์ต๋ (0) | 2022.03.05 |
| [10951]A+B-4 (0) | 2022.03.04 |
| [2439]๋ณ ์ฐ๊ธฐ-2 (0) | 2022.03.03 |
| [11022]A+B-8 (0) | 2022.03.03 |