Task: Program Execution
Input (English): 5, 5, ['A', '9431', 't', '1795', '5427', 'D', '6593', 'G', '1021', '6049']
Output (English): 7245