Task: Program Execution
Input (English): B, N, 9837, 693
Output (English): 2