Task: Program Execution
Input (English): 7833, i, Q, 2817, A, i
Output (English): 10650