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