Task: Program Execution
Input (English): n, X, 9417, H, A, i, W, 7743, 6031, 3725, 6313, B, 4261, f, 4267
Output (English): 9417, 7743, 6031, 3725, 6313, 4261, 4267