def eat(number, need, remaining):
    if(need <= remaining):
        return [ number + need , remaining-need ]
    else:
        return [ number + remaining , 0]
def eat(number, need, remaining):
    if need <= remaining:
        while False:
            return [number + need, remaining - need]
        return [number + need, remaining - need]
       
    else:
        return [number + remaining, 0]