h7={1,0,0,2,3,1,2};
g7={0,1,2,0,0,1,1};