Task: Program Execution
Input (English): 7, 8, ['3351', '3107', '3719', '1579', '5989', '3083', '8117', 'X', '1951']
Output (English): X7118