Task: Program Execution
Input (English): 5487 X g o Z M m 6833 1485 953 w n 5903 i E 7861 B 537 6951 L 527 6557 w 4187 J q 4997 5733 R 6725 M
Output (English): 2, 3, 4, 5, 6, 7, 11, 12, 14, 15, 17, 20, 23, 25, 26, 29, 31