Task: Program Execution
Input (English): 7821, H, W, n, 7707
Output (English): 3