for each(c in readline(k=7))k+=c,putstr(c+["\n"[k%=7]])