Task: Program Execution
Input (English): 2, 3, ['7445', '6677', 'H', '8349', '7475', '3409', '8535', '1177', 'K', '1887', '4519', 'c', '7415', '899', 'f']
Output (English): H7766