Task: Program Execution
Input (English): 3017 3373 9897 9495 21 4821 6413 x Q 837 l j v b 8147 8675 1225 5863 l 1527 4335 C 2647 3995 G Z 845 C S 5495 9855 V z 6457 7171 4987 R 1439
Output (English): 1, 2, 3, 4, 5, 6, 7, 10, 15, 16, 17, 18, 20, 21, 23, 24, 27, 30, 31, 34, 35, 36, 38