while 1:s=raw_input();print s[:max(map(s.find,'stop'))+1]