Task: Program Execution
Input (English): 9503, q, 1859, 9729, 3467, 2989, F, 9397
Output (English): 36944