Task: Program Execution
Input (English): W, 6911, 7841, 1471, 6119, q, x, n, 2395, Z, z
Output (English): 6911, 7841, 1471, 6119, 2395