#输入整数x
x = int(input())
#输入整数y
y = int(input())
#输出乘数
print(x*y)
#输出幂运算
print(x**y)