Task: Program Execution
Input (English): M F 4771 5545 2133 v 9343 V A 6389 1271 6067 Y h 381 j C 359 v 3951 6013 9871 5345 6931 8163 B 1901 s 6813 6043 i C I c p K 4063 4243 N 1047
Output (English): 1, 2, 6, 8, 9, 13, 14, 16, 17, 19, 26, 28, 31, 32, 33, 34, 35, 36, 39