Task: Program Execution
Input (English): 5869 X N Z 8807 7463 5277 p 7799 8687 2043 n Q 1307 n I D O 3947 4467 W d I 3141 831 8795 E q 3823 1757 1145 n 8981 6451 S G
Output (English): 2, 3, 4, 8, 12, 13, 15, 16, 17, 18, 21, 22, 23, 27, 28, 32, 35, 36