Task: Program Execution
Input (English): 1905, 7767, 8691, k, d, N, 1849, 2655, M, O, 4989, N, R, 1355, n, R, 6213, m
Output (English): k, d, N, M, O, N, R, n, R, m