S = list(input()) N = len(S) idx = [] for i in range(N): if S[i] == '#': idx.append(i) print("".join(S[idx[0] + 1 : idx[1]]))