22 lines
296 B
C++
22 lines
296 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
|
|
int main(){
|
|
ios::sync_with_stdio(0);
|
|
cin.tie(0);
|
|
|
|
long long n, m, a;
|
|
|
|
cin >> n >> m >> a;
|
|
|
|
long long result = ceil((double)n / (double)a) * ceil((double)m / (double)a);
|
|
|
|
cout << result;
|
|
|
|
cout << flush;
|
|
|
|
return 0;
|
|
}
|