1#include <iostream>2#include <iomanip>3using namespace std;4 5int main()6{7 int n,m,a;8 cin>>n>>m>>a;9 long long cnt1=n/a;10 if(n%a!=0)11 cnt1++;12 int cnt2=m/a;13 if(m%a!=0)14 cnt2++;15 cout<<cnt1*cnt2;16}