Task: Program Execution
Input (English): B 9239 9145 1773 Z d 8661 u 4203 A z B D e 211 1889 2963 4421 8649 V 8613 N s A 4803 505 3341 3545 2473 w x C 5367 9605 C d 2491 295 P 1333
Output (English): 1, 5, 6, 8, 10, 11, 12, 13, 14, 20, 22, 23, 24, 30, 31, 32, 35, 36, 39