Task: Program Execution
Input (English): Q, u, K, 7851, 4981
Output (English): 3