Function: invert(numbers('rep') if numbers('xyy') > numbers('yxr') else numbers("per") if numbers('xyy') > product(numbers('xyy') if numbers("per") > numbers('rep') else numbers('yxr'), numbers('xyy')) else numbers("per") if product(numbers('rep') if numbers('yxr') > numbers("per") else numbers('xyy'), numbers('xyy')) > numbers('xyy') else numbers('xyy') if numbers('yxr') > numbers("per") else numbers('rep'))