set /P s= set /a "(g=%s:~18,2%-(a=%s:~0,2%))&(h=%s:~21,2%-(b=%s:~3,2%))&(i=%s:~24,2%-(c=%s:~6,2%))&(j=%s:~27,2%-a)&(k=%s:~30,2%-b)&(l=%s:~33%-c)&(w=(%s:~12,2%-b)*(i*j-g*l))&(y=(w+((%s:~15,2%-c)*(g*k-h*j))+(%s:~9,2%-a)*(h*l-i*k))/6)" echo %y%