Task: Program Execution
Input (English): 1591, G, L, 1145, 1511, N, 6845, O, 4373, 6703, M, 2129
Output (English): 24297