Task: Program Execution
Input (English): 1987, N, 3491, 1889
Output (English): 1987, 14, 3491, 1889