Task: Program Execution
Input (English): 2, 3, ['g', '7389', '4831', '5479', 'X', 'A', 'o', 'F', '9755', 'w', '8695', 'p', 's', 'X']
Output (English): 7389, 4831