Task: Program Execution
Input (English): H W D O a 6791 V C a 3615 t u 3211 2843 h s V 9807 1977 2785 t 8777 3701 4479 Y N 8443 1899 M
Output (English): 1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 15, 16, 17, 21, 25, 26, 29