Task: Program Execution
Input (English): 1405 3817 8927 n m 7381 R 2303 s 9335 8823 L g 4439 5093 d 1763 p 8499 9591 q 8523 Y 4261 p 2549 9241 T 1927 r 731 s 4141 2559 8313 6331
Output (English): 4, 5, 7, 9, 12, 13, 16, 18, 21, 23, 25, 28, 30, 32