Task: Program Execution
Input (English): 5839, Y, P, z, A, M, 971, b, 3225, K, 4351, 4475, l, 6209, L, 131, U, N, F
Output (English): Y, P, z, A, M, b, K, l, L, U, N, F