Task: Program Execution
Input (English): j, 7221, Q, c, 8037, q, M, 8345
Output (English): 1, 3, 4, 6, 7