Task: Program Execution
Input (English): n, 7877, 2539, L, x, 6519, f, 1527, K, X, h, B, x, 319, 4439, L, S, c
Output (English): n, L, x, f, K, X, h, B, x, L, S, c