# Arup Guha
# 9/7/2020
# Solution to COP 2930 Program #2B: Printing Area

# Get the user input.
area = int(input("What's the area needed for printing in square inches?\n"))
length = int(input("How long is a single page in inches?\n"))
width = int(input("How wide is a single page in inches?\n"))

# Calculate area, accounting for 1 inch margins on both sides.
pageArea = (length-2)*(width-2)

# We want the ceiling of area divided by pageArea. In class, this is how
# we calculated ceiling just using integer division.
pagesNeeded = (area + pageArea - 1)//pageArea

# Output the result.
print("The book will take", pagesNeeded,"pages to print.")
