Task: Program Execution
Input (English): 4727, N, N, 3939, 6105, 7651, R, 1185, D, 2421, 7497, n, 7575, 3811, o, H, g, W, g, Z, 5111, k, o
Output (English): 4727, 3939, 6105, 7651, 1185, 2421, 7497, 7575, 3811, 5111