Task: Program Execution
Input (English): X 7179 P Q M 8059 A 6431 C 8731 9149 543 m 9107 A 1909 6571 5687 7441 9979 R 275 F o 599 i 9627 8287 g 5543 U 4823 a N K 3707 1867 2961 S X
Output (English): 2, 6, 8, 10, 11, 12, 14, 16, 17, 18, 19, 20, 22, 25, 27, 28, 30, 32, 36, 37, 38