Fermat’s sandwich theorem