Task: Program Execution
Input (English): P, K, 5311, 2839, r, X, 5585, r, Z, j, s, p, 7279, W, m, g, 3847, 8125, C
Output (English): 1, 2, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 19