Task: Program Execution
Input (English): 4, 3, ['6231', '9389', 'z', '8841', 'q', 'F', '9493', '6627', '7295', '4741', '5871', 'h', '8181', 'o', '3561', '1077', 'X', '7167', 'Z', '8965', '7843']
Output (English): 8841, 9493, 4741, 8181, 1077, Z