# Arup Guha
# 6/13/2022
# Solution #1 to Class Exercise #2: Workout

# Need this variable.
oldWorkout = -1

# Go through all the workouts.
for i in range(1, 11):

    # Get the next workout.
    newWorkout = int(input("What is the level of workout #"+str(i)+"?\n"))

    # Oooh...this is too hard, we skip it!
    if i > 1 and newWorkout > oldWorkout + 2:
        continue

    # Print out about the workout.
    print("Did workout #"+str(i)+" at level "+str(newWorkout))

    # For the next loop iteration, this is now the old workout.
    oldWorkout = newWorkout
