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