Task: Program Execution
Input (English): K, 1515, K, N, 5871, 9357, 7295, 8149, 9745, Y, 3085, 3319, 9089, 9375, 4031, R, 8909, 7747, a, C, 5585
Output (English): 1515, 5871, 9357, 7295, 8149, 9745, 3085, 3319, 9089, 9375, 4031, 8909, 7747, 5585