Task: Program Execution
Input (English): 2849, 1415, 6801, I, B, F, 7017, 1947, O, 6465, q, 5081, X
Output (English): 6