import sys
for s in sys.stdin:
    [a, b] = [int(i) for i in s.split()]
    if a == 0 and b == 0:
        break
    print(a ** b)

c33f79421403d66037fef2b672324b9f7901aed4
<mask token>

<mask token>
for s in sys.stdin:
    [a, b] = [int(i) for i in s.split()]
    if a == 0 and b == 0:
        break
    print(a ** b)

import sys
for s in sys.stdin:
    [a, b] = [int(i) for i in s.split()]
    if a == 0 and b == 0:
        break
    print(a ** b)
