s=input() n=len(s) lst=[] for i in range(n): if s[i]=="#":lst.append(i) print(s[lst[0]+1:lst[1]])