#  Accept two int values from the user and return their product.
#   If the product is greater than 1000, then return their sum



 
my_values1 = int(input("Enter a number :"))
my_values2 = int(input("Enter a number :"))
x = my_values1*my_values2
if x > 1000:
    print(my_values1+my_values2)

else:
    print(x)
  
        
    
   


        

    