Task: Program Execution
Input (English): 5877 2589 I 4475 9471 3403 3113 1893 3447 N y x 8247 2405 x A x 2197 W F F v 2155 N W t s Q 1783 T 8349
Output (English): 1, 2, 4, 5, 6, 7, 8, 9, 13, 14, 18, 23, 29, 31