```Python
if   eHF < eGG : 
    return eGG
elif eHF > 1:
    return 1.
else: 
    return eHF
```