#Generating random number in python

import random
r = random.randint(1,20)

while(True):
	inp = int(input())
	if(inp<r):
		print("Wrong guess,try a greater number")
	elif(inp>r):
		print("Wrong guess,try a smaller number")
	else:
		print("Congrats you have guessed the number")
		break