using static System.Console;class _{static void Main(){int x=0,i=0;for(int[]X=new int[12];i<12;Read())x+=i/9*(X[i]=Read()*10+Read()-X[i%3])*(X[++i%3+3]*X[-~i%3+6]-X[i%3+6]*X[3-~i%3]);Write(x/6);}}