o="" n=0 for c in raw_input()+" ":n=n*2&6;n+=c>" ";o+=n and n<5and"#"or" " print o