x = int(input()) y = int(input()) # 计算 x * y result1 = x * y # 计算 xy result2 = x ** y print(result1) print(result2)