import random
number = random.randint(1, 5)

print(' Enter a number between 1 and 5')
guess = int(input())

while True:
   if  number == guess:
       print('Congratulations! You guessed the number correctly.')
       break
   else:
       print('Wrong guess. Try again!')
       print(' Enter a number between 1 and 5')
       guess = int(input())
       continue