import random
num = random.randint(1,10)
print "I'm thinking of a number between 1 and 10"
print "You have three guesses."
for i in range(3):
    guess = raw_input("Guess: ")
    if int(guess) == num:
        print "Right!"
        break
    else:
        print "Wrong!"
print "My number was",num





    
