Task: Program Execution
Input (English): 5201, z, y, X, 2793, 3171, N, N, z, z, P, I, C, u, 5087, v, w, E, l, m
Output (English): 5201, 2793, 3171, 5087