def sum_and_product(a: int, b: int):
return a + b, a * b
A, B = map(int, input("Enter two integers, separated by a space: ").split())
sum_result, product_result = sum_and_product(A, B)
print("The sum of", A, "and", B, "is", sum_result)
print("The product of", A, "and", B, "is", product_result)