Task: Program Execution
Input (English): 8957 6017 m 1461 1195 Z 8487 u 5659 881 e w 4231 b d 8783 i J 449 5205 z o K n d N m 6525 c 6915 8035 3217 3369 p 9069 8007 M M 4551 5657
Output (English): 1, 2, 4, 5, 7, 9, 10, 13, 16, 19, 20, 28, 30, 31, 32, 33, 35, 36, 39, 40