Task: Program Execution
Input (English): J 4917 4999 v a U j A 9595 4193 9409 9423 q 7221 S 5785 M r U w G o z b 6271 a G 2567 2703
Output (English): 2, 3, 9, 10, 11, 12, 14, 16, 25, 28, 29