python/2024-7-14-1.py

7 lines
86 B
Python

a=int(input())
b=int(input())
if a**b>1000000000:
print(-1)
else:
print(a**b)