Task: Program Execution
Input (English): a, 3623, N, 2469, 399, H, 7147, L, 1039, g, 4405, 5283, D, M, C, X, 1549, 4617, 3395, 1237, g
Output (English): a, N, H, L, g, D, M, C, X, g