# Arup Guha
# Reception Tables
# 7/3/2012
# Edited 6/62022 to ask # people per table.

# Read in information.
length = int(input("How many feet long is the room?\n"))
width = int(input("How many feet wide is the room?\n"))
side = int(input("How many feet is a side of the table?\n"))

# Get # of people.
ppl_per_table = int(input("How many people fit at a table?\n"))

# Calculate the number of rows and columns.
num_cols = length//side
num_rows = width//side

# Number of tables.
num_tables = num_rows*num_cols

# Now we can calculate # of people total.
total_ppl = num_tables*ppl_per_table

# Print out all.
print("You can fit", num_tables, "number of tables ", end="")
print("for a total of", total_ppl,"guests.")
