Task: Program Execution
Input (English): v 2367 m 3247 2763 2147 4973 7863 4121 N Q 8179 U W p 2549 3489 R 2811 a J 8691 8861 2579 67
Output (English): 22, 2367, 13, 3247, 2763, 2147, 4973, 7863, 4121, 14, 17, 8179, 21, 23, 16, 2549, 3489, 18, 2811, 1, 10, 8691, 8861, 2579, 67