Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
229 B
3
Indexable
Never
n = int(input())

def SUM(n):
    ans = 0
    for i in str(n):
        ans += int(i)
    
    return ans

total = SUM(n)

while total > 26:
    total = SUM(total)

print("ABCDEFGHIJKLMNOPQRSTUVWXYZ"[total-1],end="")