a=0 b=1 c=2 d=3 e=3 f=3 g=3 h=3 i=1 print ((a*e*i+b*f*g+c*d*h-a*f*h-b*d*i-c*e*g)/6)