import random
x = random.randrange(10) + 1
y = ''
guessnumber = 0
while True:
if y != x and guessnumber <= 2:
y = int(raw_input('I\'ve picked a number. Make a guess!\n'))
if y > x:
print 'Wrong guess! Try lower number!'
elif y < x:
print 'Wrong guess! Try higher number!'
elif y == x:
print 'Gratz!'
break
guessnumber += 1
if guessnumber == 2:
y = int(raw_input('I\'ve picked a number. Make a guess!\n'))
if y == x:
print 'Gratz!'
break
else:
print 'Fail. Out of guesses.'
break
raw_input('\n\nP')
aW1wb3J0IHJhbmRvbQp4ID0gcmFuZG9tLnJhbmRyYW5nZSgxMCkgKyAxCnkgPSAnJwpndWVzc251bWJlciA9IDAKd2hpbGUgVHJ1ZToKICAgICAgICBpZiB5ICE9IHggYW5kIGd1ZXNzbnVtYmVyIDw9IDI6CiAgICAgICAgICAgICAgICB5ID0gaW50KHJhd19pbnB1dCgnSVwndmUgcGlja2VkIGEgbnVtYmVyLiBNYWtlIGEgZ3Vlc3MhXG4nKSkKICAgICAgICAgICAgICAgIGlmIHkgPiB4OgogICAgICAgICAgICAgICAgICAgICAgICBwcmludCAnV3JvbmcgZ3Vlc3MhIFRyeSBsb3dlciBudW1iZXIhJwogICAgICAgICAgICAgICAgZWxpZiB5IDwgeDoKICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgJ1dyb25nIGd1ZXNzISBUcnkgaGlnaGVyIG51bWJlciEnCiAgICAgICAgICAgICAgICBlbGlmIHkgPT0geDoKICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgJ0dyYXR6IScKICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWsKICAgICAgICAgICAgICAgIGd1ZXNzbnVtYmVyICs9IDEKICAgICAgICAgICAgICAgIGlmIGd1ZXNzbnVtYmVyID09IDI6CiAgICAgICAgICAgICAgICAgICAgICAgIHkgPSBpbnQocmF3X2lucHV0KCdJXCd2ZSBwaWNrZWQgYSBudW1iZXIuIE1ha2UgYSBndWVzcyFcbicpKQogICAgICAgICAgICAgICAgICAgICAgICBpZiB5ID09IHg6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgJ0dyYXR6IScKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhawogICAgICAgICAgICAgICAgICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50ICdGYWlsLiBPdXQgb2YgZ3Vlc3Nlcy4nCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWsKICAgICAgICAgICAgICAgICAgICAgICAgCnJhd19pbnB1dCgnXG5cblAnKQ==