Task: Program Execution
Input (English): 9887, L, e, 1407, L, z, 6193, R, H, 1529, 171, 9609, h, 2395, L, d, 1919, S, 3411
Output (English): 9887, 1407, 6193, 1529, 171, 9609, 2395, 1919, 3411