Task: Program Execution
Input (English): 6, ['3041', '4695', '3435', '5087', '2207', '5305', '6277', '1593', 'X', 's', 'm', 'a', 'n', 'P', 'J']
Output (English): 3041, 4695, 3435, 5087, 2207, 5305