Task: Program Execution
Input (English): Z, 4989, O, q, Q, 931, k, F, 831, 5561
Output (English): 12312