Task: Program Execution
Input (English): 9419, 7201, 2665, 769, 5511, P, 2319, Q, 2551, 9725
Output (English): 6, 8