Task: Program Execution
Input (English): Q, 2055, 5811, V
Output (English): 1, 4