import re S = input() r = re.match(r'^.*#(.*)#.*$', S) print(r.group(1))