Task: Program Execution
Input (English): L, Y, X, 1989, 8147, k, N, 8409, k, 3989
Output (English): 22534