Task: Program Execution
Input (English): 3, 3, ['3789', '5463', '8489', '2799', '6131', '1569', '1855', 'a', 'z', 'T', 'd', '8711', 't', 'K', '2149', 'k', '7887', 'A']
Output (English): 8489, 1569, z, 8711, 2149, A