var a,b,c:char;begin repeat a:=b;b:=c;read(c);write(chr(35-3*ord((a+b+c>'# ')|(a+b+c=' '))),'#':ord(eof))until 1=0end.