Task: Program Execution
Input (English): 5149, 1979, 4399, L, 1419, 7563, M, 1381, c, G, c
Output (English): 4, 7, 9, 10, 11