#include using namespace std; using ll=long long; int main(){ ll N,M,K; cin>>N>>M>>K; if(K*K