Task: Program Execution
Input (English): J, Y, 1871, U, 4061, k, Q, U, J, T, 9699, 3509, 1389, D
Output (English): 1, 2, 4, 6, 7, 8, 9, 10, 14