Task: Program Execution
Input (English): 6151, Z, W, f, T, 7941, w, A
Output (English): Z, W, f, T, w, A