多的不说,简单搞就完了。
x = int(input())
y = int(input())
print(x*y,x**y,sep='\n')