#coding:utf-8
#loop ループ
#繰り返し分 while
import os
import random
os.system("clear")
#数あて number
x= random.randint(1,99)
y=int(input("1-99までの数字をあててみよう:"))
cnt=0
while True:
cnt+=1
if x==y:
print(f"\n{cnt}回であたり!天才か!?")
break
elif x < y:
print("はずれ もっと小さく\n")
else:
print("はずれ もっと大きく\n")
y = int(input("次の数字:"))
if cnt ==1:
print("LUKKY!!")
elif cnt >=2 and cnt<=4:
print("なんだただの天才か...")
elif cnt >=5 and cnt<=8:
print("ただの一般人なんすわ!")
else :
print("ふっww")