Task: Program Execution
Input (English): T, 1541, P, N, K, L, U, R, 7229, M, 8079, 8669, j, q, 3677
Output (English): 2, 9, 11, 12, 15