Task: Program Execution
Input (English): Y, 4727, Q, 47, C, y, A
Output (English): 1, 3, 5, 6, 7