import re
import sys

print("\n".join(re.findall(r"(?m)^\s*([^\/?#]*)", sys.stdin.read())))