Task: Program Execution
Input (English): 4, 5, ['3707', 'G', '5635', 'P', 'L', '3237', '505']
Output (English): LP