import re S = input() m = re.search(r"#.*#", S) print(m.group().replace("#", ""))