x = eval(input())
y = eval(input())


# print(x * y)
# print(x ** y)

print(x * y, x ** y, sep="\n")