# Arup Guha
# 1/29/2012
# Solution to COP 3223 Program 1 Part C: Road Trip

def main():

    # Get all the user input.
    gallons_gas = int(input("How many gallons of gas does your tank hold?\n"))
    mpg = int(input("What is your fuel efficiency in miles per gallon?\n"))
    trip_length = int(input("How many miles long is your road trip?\n"))

    # Normally, we would just divide the trip length by how far
    # we can go on a gallon of gas. But, we need to account for
    # the case when we make it there on empty. By subtracting 1,
    # from the trip length, we allow for this case. This only
    # works since all input values are integers.
    times_refuel = (trip_length-1)//(mpg*gallons_gas)

    # Display the result.
    print("You will have to refuel",times_refuel,"time(s).")
    
main()
    
    
