Task: Program Execution
Input (English): 2247, 6169, 2239, 7913, 4527, 4383, 8817, q
Output (English): 8