f=0 l,r=-1,-1 S=input() for i in range(len(S)): if l==-1 and S[i]=='#': l=i if S[i]=='#': r=i print(S[l+1:r])