Task: Program Execution
Input (English): d, 1919, N, 3601, 7305
Output (English): 2