s = input() begin = s.find('#') end = s.find('#', begin+1) print(s[begin+1:end])