import re 
string = input()

fir_result = re.sub(r"\s+","",string)
sec_result = re.sub(r"#.*","",fir_result)

print(sec_result)