Task: Program Execution
Input (English): N, R, W, 7465, 7983, J, V, u, 2855, 6815, l, 5985, Q, 939, D, F, B, B, 1091, J, n, 8029
Output (English): 14, 18, 23, 7465, 7983, 10, 22, 21, 2855, 6815, 12, 5985, 17, 939, 4, 6, 2, 2, 1091, 10, 14, 8029