# Arup Guha
# 2/21/2020
# Solution to COP 2930 Exam #1 Day #2 Question #2

COST6 = 2.99
COST9 = 3.99

n = int(input("How many chicken nuggets do you want to buy?\n"))

num6packs = n//6

if n%6 > 0 :
    num6packs += 1

num9packs = n//9

if n%9 > 0 :
    num9packs += 1

cost6packs = num6packs*COST6

cost9packs = num9packs*COST9

if cost6packs < cost9packs :

	print("It is cheaper to buy", num6packs, "6 packs.")
	print("The total cost will be", cost6packs)

else:

	print("It is cheaper to buy", num9packs, "9 packs.")

	print("The total cost will be", cost9packs)
