Task: Program Execution
Input (English): M, n, L, U, 931, Q, R, 2959, V, 5465, G, 3215, 4927, R, 6495, 5331, 2521, D, e, v, N, 5925, c, 8991
Output (English): 5, 8, 10, 12, 13, 15, 16, 17, 22, 24