Task: Program Execution
Input (English): i, 4745, x, 7785, 8811, f, p, H, W, A, x, a, i
Output (English): 4745, 7785, 8811