# 电脑出数字i
import random
computer=random.randint(1,10000)
a=0
while a<35:
we = int(input('请猜一个数字'))
if we==computer:
print('恭喜你猜中了')
break
if we>computer:
print('你猜大了')
if we<computer:
print('你猜小了')
a=a+1
print("你一共用了"+str(a)+"次机会")