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