#include int main(){double n,m,p;std::cin>>n>>m>>p;double a=n==1?1:(p*(n-2)+2)*p,b=m==1?1:(p*(m-2)+2)*p;printf("%.15f\n",a*b*p);}