Task: Program Execution
Input (English): w, i, 7973, Z, Z, 9227, M, 1407, 1239, 261, 1365, 1525, y, Z, O, K, j, M, P
Output (English): 7973, 9227, 1407, 1239, 261, 1365, 1525