Task: Program Execution
Input (English): 5729, 3371, 5843, 8891, Y, E, 8371
Output (English): 1, 2, 3, 4, 7