3 4 1
12
1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 using namespace std; 5 char b[10001]; 6 int ans; 7 long long int a; 8 long long int n,m; 9 int now=1; 10 int main() 11 { 12 cin>>n>>m>>a; 13 cout<<(n/a)*(m/a); 14 return 0; 15 }