Task: Program Execution
Input (English): 5883 R G n w 1963 4339 8543 v 6333 K 7759 C 4517 1649 q 4757 X H 9979 s V 3127 B T w M V N 1353 1229 2973 P P u R 2023 8861 J
Output (English): 2, 3, 4, 5, 9, 11, 13, 16, 18, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 34, 35, 36, 39