Task: Program Execution
Input (English): 4, 7, ['4119', 'N', 'c', '7427', 'A', 'K', 'N', 'c', 'J', '7439', '777', '1341', 'T', '1707']
Output (English): NKA7247