Solution to the problem number 1A of Codeforces - 1A.

Any questions do not hesitate to contact.

#include <iostream>
using namespace std;

int main() {
	long long int a,n,m;
	cin>>n>>m>>a;
	cout<< ((n+a-1)/a)*((m+a-1)/a) <<endl;
	return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!