Task: Program Execution
Input (English): 7837, 8405, N, 5261
Output (English): 3