def ends_up_at_start(input_text):
    # Step 1: Initialize variables to track the direction and distance traveled.
    direction = "forward"
    distance = 0
    starting_position = 0
    print(f"Initialized variables: direction = {direction}, distance = {distance}, starting_position = {starting_position}")

    # Step 2: Parse the instructions from the input text.
    instructions = input_text.split()
    print(f"Parsed instructions: {instructions}")

    # Step 3: Iterate and process each instruction.
    for instruction in instructions:
        # Step 3.1: Identify the direction of movement.
        if instruction == "backward":
            direction = "backward"
            print(f"Iteration {i+1}: Direction of movement is {direction}.")

        # Step 3.2: Determine the distance traveled.
        elif instruction.isdigit():
            distance = int(instruction)
            print(f"Iteration {i+1}: Distance traveled is {distance}.")

        # Step 3.3: Update the direction and distance traveled variables.
        else:
            print(f"Iteration {i+1}: Invalid instruction {instruction}.")

        # Step 3.4: Update the starting position.
        if direction == "forward":
            starting_position += distance
        else:
            starting_position -= distance
        print(f"Iteration {i+1}: Updated starting position: {starting_position}.")

    # Step 4: Determine the final position.
    final_position = starting_position
    print(f"Final position: {final_position}.")

    # Step 5: Compare the final position to the starting position.
    if final_position == starting_position:
        print("Final position is the same as the starting position.")
        return "Yes"
    else:
        print("Final position is not the same as the starting position.")
        return "No"