# Arup Guha
# 8/30/2019
# Chicken or Steak???

# Get the cost of each entree.
chickenCost = int(input("How many dollars is the chicken?\n"))
steakCost = int(input("How many dollars is the steak?\n"))

# Get # of guests and how much you want to spend at most.
numGuests = int(input("How many guests at the wedding?\n"))
maxSpend = int(input("What is the most you want to spend on food, in dollars?\n"))

# How much we are willing to spend beyond the bare minimum.
extraCost = maxSpend - numGuests*chickenCost

# With this, we can calculate the most number of people who can have steak.
maxSteak = extraCost//(steakCost-chickenCost)

# Now, we calculate the minimum number of guests who need to get chicken.
minChicken = numGuests-maxSteak

# Display the result.
print("At least", minChicken, "number of guests must order chicken for us to stay on budget.")

