Task: Program Execution
Input (English): Z, 5019, 7741, 4801, N, 1633, 2841, o, f, X, 6729, P
Output (English): 5019, 7741, 4801, 1633, 2841, 6729