Task: Program Execution
Input (English): 1387 U 51 4355 6817 c 9945 9713 H A I D h g m 3731 b 4015 j 8813 5789 x S i h v 1439 3187 c 695 J H d
Output (English): 1, 3, 4, 5, 7, 8, 16, 18, 20, 21, 27, 28, 30