do k=1;c=charin();k=(3*k+c-3)//7;do charout(,c)=k;say;end;end