tanks/mist.py

18 lines
236 B
Python
Raw Normal View History

2026-05-17 19:55:12 +02:00
n = int(input())
s = 10
while s >= 10:
s = 0
while n >= 10:
s += n % 10
n /= 10
s += n
if s > 9:
n = s
s = 10
s=int(s)
if s != 1:
print(s)
else:
print("Szczesliwego Nowego Roku")