//Rosa Enciso
// Solution to 2007 BHCSI Mock Contest #1 Problem Minka

import java.io.*;
import java.util.*;

public class minka
{

	public static void main (String [] args) throws IOException
	{	
		Scanner input = new Scanner(new File("minka.in"));
		int city_w = input.nextInt();
		int city_l = input.nextInt();
		int side = input.nextInt();
		
		
		double city_area = city_w*city_l;
		double piece_area = side*side;
		
		int a = city_w/side;	//number of squares of width w we can fit across the city
		int b = city_l/side;	//number of squares with length l we can fit on the other side of the city
		
		//calculate number of families we can fit in the new city
		int number_of_families = a*b;
		
		//calculate amount of area left for Sun God
		double sun_area = city_area - (piece_area * number_of_families);
		
		System.out.println("Your majesty Tupaq Yupanqui, you can place " + number_of_families + " families in the new city and the area left for your god the Sun is " + sun_area + " meters squared.");
		
	}	
}