Task: Program Execution
Input (English): I, K, 1809, 3061
Output (English): 2