s=input()
k="keyence"
for i in range(7):
    if k[:i] not in s or k[i:] not in s:
        continue
    else:
        if s.find(k[:i])<s.find(k[i:]):
            print("YES" )
            exit()
print("NO")



