Task: Program Execution
Input (English): a g 1725 A P 8003 o Y B P A 7405 a e e r z 7041 n y 7863 9471 3325 9949 i 7011 A 4403 h C 8751
Output (English): 1, 2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 20, 25, 27, 29, 30