// Arup Guha
// 1/28/2026
// Pepperoni Practice Question for COP 3330 Quiz Review

import java.util.*;

public class pepperoni {

	public static void main(String[] args) {
		
		Scanner stdin = new Scanner(System.in);
		System.out.println("How long and wide is your pizza in mm?");
		int len = stdin.nextInt();
		int wid = stdin.nextInt();
		System.out.println("How long is the side of a pepperoni square?");
		int div = stdin.nextInt();
		
		// Figure out the number of columns and rows of pepperoni.
		int numCols = len/div;
		int numRows = wid/div;
		int numPepperoni = numCols*numRows;
		
		// Output the result.
		System.out.println("Your pizza has "+numPepperoni+" pepperonis on it.");
	}
}