Task: Program Execution
Input (English): 7, 14, ['K', '9649', '3179', '107', 'g', '9301', '593', '7877', '4153', '3707', '5787', '8439', 'K', 'Q']
Output (English): 593, 7877, 4153, 3707, 5787, 8439, K, Q