Task: Program Execution
Input (English): 2, 12, ['M', 'P', '7359', '7705', '577', 'r', '8989', '4161', '6747', 'n', 'a', '5643', 'z', 'Y', 'L', 'K', 'n', '8267', 'v', '6815', 'E', 'm', 'b', 'i', '1739']
Output (English): P, Y