Task: Program Execution
Input (English): 9639 1767 a B 2049 H a 6821 2199 s L 567 S m U 9465 g H n N 483 3561 6109 S T s 1001
Output (English): 1, 2, 5, 8, 9, 12, 16, 21, 22, 23, 27