Task: Program Execution
Input (English): 3, ['j', 'm', 'm', 'p', '1047', 'L', 'K', 'g', 'p', '8981', '5165', '3685', 'T']
Output (English): j, m, m