Task: Program Execution
Input (English): 8721, 1821, 7981, h, K, 8257, k, N, 1183, A, 3123, w, M, 7193, m
Output (English): h, K, k, N, A, w, M, m