Task: Program Execution
Input (English): Q, 4721, v, h
Output (English): 4721