Task: Program Execution
Input (English): Q R 6873 G c S 7133 K 8785 d 4331 v J 5605 2185 5889 8195 4839 6251 5247 R 1045 3001 I D 3381 j A 4447 8475 K 4707 5613 F
Output (English): 17, 18, 6873, 7, 3, 19, 7133, 11, 8785, 4, 4331, 22, 10, 5605, 2185, 5889, 8195, 4839, 6251, 5247, 18, 1045, 3001, 9, 4, 3381, 10, 1, 4447, 8475, 11, 4707, 5613, 6