Task: Program Execution
Input (English): Q, J, 2809, 4005
Output (English): 2