s = list(input()) cnt = 0 ans = [] for i in range(len(s)): if cnt == 0: if s[i] == "#": cnt += 1 elif cnt == 1: if s[i] == "#": cnt += 1 else: ans.append(s[i]) print("".join(ans))