def solve1(buses, est):
    'Get the earliest bus from the <buses> according to the <est>imate\n    time.  '
    arrival = [(bus - (est % bus)) for bus in buses]
    earliest = min(arrival)
    return (min(arrival) * buses[arrival.index(earliest)])
Get the earliest bus from the <buses> according to the <est>imate
time.
def solve1(buses, est):
    'Get the earliest bus from the <buses> according to the <est>imate\n    time.  '
    arrival = [(bus - (est % bus)) for bus in buses]
    earliest = min(arrival)
    return (min(arrival) * buses[arrival.index(earliest)])