I,R,O=input,range,print J=lambda:map(int,I().split()) S=I() a=b=c=0 for s in S: if s=='#': if c==0:b,c=a,c+1 else:break a+=1 O(S[b+1:a])