num1 = input(str("Enter num 1:" ))
num2 = input(str("Enter num 2:"))
num1 = int(num1)
num2 = int(num2)
product = num2 * num1
if product > 1000:
    print("sum of input numbers is ", num1+num2)
else:
    print("product is ", product)