# Kelvin Ly
# 10/07/12
# Part B: Determines how much you'll be paid for your manual labor

# Get the number of bags
bags = int(input("How many bags of leaves did you fill this month?\n"))

# Get the base amount of pay
pay = bags * 3

if bags > 10:
	pay = pay + 20		#Add in the bonus

print("Great, you made $", pay, ".", sep="")

# There are other ways to do this, but this one seems to be the most optimal.

