Task: Program Execution
Input (English): 5, 7, ['W', 'k', '7147', '6637', 'm', 'M', 'K', 'w']
Output (English): mMK