Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
210 B
2
Indexable
Never
n,k = map(int, input().split())
while n >= 10 :
	sd1 = 0 
	for digit in str(n) :
		sd1 += int(digit)
	n = sd1
while k >= 10 :
	sd2 = 0 
	for digit in str(k) :
		sd2 += int(digit)
	k = sd2
print(n**k)