Task: Program Execution
Input (English): 2, 4, ['X', 'S', '9155', '901', 'n', '1055', '8837', '7535', '251', '3865', 'a', '2595', '2901', '6593', 'G', 'R', '3797', '8319', 'd', 'J', '5967', '1009', 'S', 'x', 'i']
Output (English): S, 1055, 3865, 6593, 8319, 1009