Task: Program Execution
Input (English): w, M, 6137, f, b, g, 3117, 9475, 3037, 5843, 89, x, 9577, p
Output (English): 6137, 3117, 9475, 3037, 5843, 89, 9577