num=randint(1,100)
times=0
print"guess what i think?"
bingo=False
while bingo==False:
times+=1
answer=input()
if answer<num:
print"too small"
if answer>num:
print"too big"
if answer==num:
print"bingo"
bingo=True
if game_times==0 or times<=min_times:
min_timens=times
total_times+=times
game_times+=1
result="%d %d %d"%(game_times,min_times,total_times)
f=open("C:\Python27\game.txt","w")
f.write(result)
f.close()