Task: Program Execution
Input (English): 7789 d q 9625 9605 E W r o 9287 7561 9147 R 9017 4899 1669 1167 e h 8777 9753 1427 8867 105 K 765 v 9791 U 7929 5779 B
Output (English): 1, 4, 5, 10, 11, 12, 14, 15, 16, 17, 20, 21, 22, 23, 24, 26, 28, 30, 31