arr = [] s = input() while s: arr.append(s) s = input() for s in arr: if s[-3:] == "@@@": continue elif s[:2] == "##": print(s[2:]) else: print(s)