Task: Program Execution
Input (English): 7779, R, A, 1857, 4081, n, Y, W, 6485, N, 6261
Output (English): 7779, 18, 1, 1857, 4081, 14, 25, 23, 6485, 14, 6261