Task: Program Execution
Input (English): 3, 5, ['2215', '1581', 'J', '8745', '7779', '3627', '3581']
Output (English): 77798745J