import random
x = random.randrange(10) + 1
y = ''
count = 0
while y != x:
y = int(raw_input('I\'ve picked a number. Make a guess!\n'))
count += 1
if y > x:
print 'Wrong guess! Try lower number!'
elif y < x:
print 'Wrong guess! Try higher number!'
print 'Congratulation! You guess right, though it took you', count, ' tries'
raw_input('\n\nP')
aW1wb3J0IHJhbmRvbQp4ID0gcmFuZG9tLnJhbmRyYW5nZSgxMCkgKyAxCnkgPSAnJwpjb3VudCA9IDAKd2hpbGUgeSAhPSB4OgogICAgICAgIHkgPSBpbnQocmF3X2lucHV0KCdJXCd2ZSBwaWNrZWQgYSBudW1iZXIuIE1ha2UgYSBndWVzcyFcbicpKQogICAgICAgIGNvdW50ICs9IDEKICAgICAgICBpZiB5ID4geDoKICAgICAgICAgICAgICAgIHByaW50ICdXcm9uZyBndWVzcyEgVHJ5IGxvd2VyIG51bWJlciEnCiAgICAgICAgZWxpZiB5IDwgeDoKICAgICAgICAgICAgICAgIHByaW50ICdXcm9uZyBndWVzcyEgVHJ5IGhpZ2hlciBudW1iZXIhJwogICAgICAgICAgICAgICAgCnByaW50ICdDb25ncmF0dWxhdGlvbiEgWW91IGd1ZXNzIHJpZ2h0LCB0aG91Z2ggaXQgdG9vayB5b3UnLCBjb3VudCwgJyB0cmllcycKcmF3X2lucHV0KCdcblxuUCcp