Task: Program Execution
Input (English): 3, 3, ['x', '117', '3179', '6801', 'R', 'F', '7935', 'C', '9739', 'z', 'g', '4799', '9631', '2839', 'K', '3667', '1553', '6463', 't', 'M', 'O']
Output (English): 3179, F, 9739, 4799, K, 6463, O