Task: Program Execution
Input (English): c, 829, r, B, U, 3873, 9765, 9731, N, W, Q, w, r
Output (English): 829, 3873, 9765, 9731