s = input() output_text = "" c = 0 for t in s: if c == 1: output_text+= t if t=="#": c += 1 print(output_text[:-1])