CF1A Theatre Square
#include <iostream> using namespace std; int main() { long long a,m,n; cin>>n>>m>>a; cout<<((n-1)/a+1)*((m-1)/a+1); return 0; }