import random

ai = random.randint(1, 100)
p = int(input("맞춰보세요: "))
count =1

while p!=ai:
if ai > p:
print("업")
elif ai<p:
print("다운")
p = int(input("맞춰보세요: "))
count += 1
print("정답입니다 ^_^ 시도한 횟수: ", count)