"""
Editor de Spyder
Este es un archivo temporal.
"""
import random as rd
b=0
a=rd.randrange(1,51)
while b < 5:
c=int(input("Adivine un numero entre 1 y 50 = "))
if c>50:
print("No se puede")
else:
if a==c:
b=5
print("Gano")
else:
b+=1
print("Intento #",b)
if c<a:
print("esta por debajo")
else:
print("esta por encima")