c=2 print"1\n2" for i in"*+1+1+1:+1:+19248439,@N*2,23=23+4:1+@:19@5+82A+P?9*43G":y=ord(i)-34;c+=y/7*2;print c;c+=y%7*2;print c