Task: Program Execution
Input (English): 4981, P, b, 9793, 5345, 3267, 545, w, 5537, 6927, Q, W
Output (English): P, b, w, Q, W