Task: Program Execution
Input (English): 2, ['3971', '6751', '6413', 'Y', 'M', 'n', '2359', '2339', '775', 'J', 'j', 'x', '3389', '5731', 'p', '8317', '2159', 'Y', 'c', '8727', 'C', 'Y', '6737', 'l', '5759', '3079']
Output (English): 3971, 6751