x = int(input("Enter a whole number no greater than ten: "))

while x > 10:

    print("This is greater than ten. Please try again.")
    x = int(input("Enter a whole number no greater than ten: "))

    if x == 111:

        break
