Task: Program Execution
Input (English): J, R, 7449, 4707, Q, X, 3379, 2863, 1305, a
Output (English): 1, 2, 5, 6, 10