Task: Program Execution
Input (English): 6513, 5479, N, R, U, X, D, 6687, k, 8713, D
Output (English): 7