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,2%-c)" echo %a% %b% %c% %l%