7 lines
86 B
Python
7 lines
86 B
Python
|
a=int(input())
|
||
|
b=int(input())
|
||
|
|
||
|
if a**b>1000000000:
|
||
|
print(-1)
|
||
|
else:
|
||
|
print(a**b)
|