n,m=gets.split.map(&:to_i) q=gets.to_f a=n>1?(q*(n-2)+2)*q:1 b=m>1?(q*(m-2)+2)*q:1 printf("%f\n",q*a*b)