Task: Program Execution
Input (English): 9905, 9997, 4205, F, q, 5207
Output (English): 29314