s = input() f = False for c in s: if c == "#": if f == False: f = True else: break elif f: print(c, end="")