for a in open(0):print(a[:max(map(a.find,'stop'))+1])