Task: Program Execution
Input (English): A, 6415, p, f, h, 5105, 3977, g, u, o, Y, p, 5071, 321, X, 6437, 5457, p
Output (English): 6415, 5105, 3977, 5071, 321, 6437, 5457