import random

def guess_number():
    number = random.randint(1, 100)
    attempts = 0
    max_attempts = 5

    print("Welcome to the Number Guessing Game!")
    print("I have chosen a number between 1 and 100. You have to guess it.")

    while attempts < max_attempts:
        guess = int(input("Enter your guess: "))
        attempts += 1

        if guess < number:
            print("Too low! Try again.")
        elif guess > number:
            print("Too high! Try again.")
        else:
            print(f"Congratulations! You've guessed the number {number} correctly in {attempts} attempts!")
            return

    print(f"Sorry, you've run out of attempts! The number was {number}.")

guess_number()