S = input() l = len(S) sharps = [] for i in range(l): if S[i] == "#": sharps.append(i) print(S[sharps[0]+1:sharps[1]])