Task: Program Execution
Input (English): 1751, M, q, 9167, 1337, 8331, c, j, q, 453, 1, 4239, 8993, 2671, N, 1259, 1481, 5473, Z
Output (English): 1751, 9167, 1337, 8331, 453, 1, 4239, 8993, 2671, 1259, 1481, 5473