Task: Program Execution
Input (English): 9549, 7595, 8513, Q, 4329, R, 5867
Output (English): 2