import random

# generate a random number between 1 and 5
secret_number = random.randint(1, 5)

# ask the user to guess the number
while True:
    guess = int(input("Guess the secret number (between 1 and 5): "))

    if guess == secret_number:
        print("Congratulations! You guessed the number correctly.")
        break
    else:
        print("Wrong guess. Try again!")