Task: Program Execution
Input (English): Q, 5379, k, 4431, E, 2707
Output (English): 3