18 lines
236 B
Python
18 lines
236 B
Python
|
|
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")
|