广场维修
#include<stdio.h>
int main(){
int n,m,a;
int width,longwise;
scanf("%d%d%d",&n,&m,&a);
width=n/a;
longwise=m/a;
if(n%a!=0){
width++;
}
if(m%a!=0){
longwise++;
}
printf("%d",width*longwise);
}
int main(){
int n,m,a;
int width,longwise;
scanf("%d%d%d",&n,&m,&a);
width=n/a;
longwise=m/a;
if(n%a!=0){
width++;
}
if(m%a!=0){
longwise++;
}
printf("%d",width*longwise);
}