Task: Program Execution
Input (English): 1741 3987 x c f v C x 3987 5147 1965 B 1953 279 U 21 8639 8695 8205 3501 6877 D 4359 3585 6365 9433 K O 155 7481 n 7497 2787
Output (English): 3, 4, 5, 6, 7, 8, 12, 15, 22, 27, 28, 31