Task: Program Execution
Input (English): 3, 5, ['L', 'F', '4709', 's', 'r', 'O', 'e', '7963', '9821', '9977', '3829', '6979', '4121', '7607', 'g', '8759', '4347', 'Z']
Output (English): 4709, 7963, 4121, Z