s = input() first = s[s.index('#') + 1:] sec = first[:first.index('#')] print(sec)