Task: Program Execution
Input (English): 2517, L, e, g, a, 5497, J, h, 4079, N, 4029, c
Output (English): L, e, g, a, J, h, N, c