from random import randint
answer = randint(1, 100)
print('Guess what number I\'m thinking?')
x = int(input())
while x != answer:
if x > answer:
print('%d is too big'% x)
x = int(input())
if x < answer:
print('%d is too small'% x)
x = int(input())
print('Bingo!%d is the right answer'% x)