Task: Program Execution
Input (English): 9839, x, 363, j, 1847, g, 7479, n, h, x, 3461, 267, 7029, g
Output (English): g, h, j, n, x