from sys import stdin

s = stdin.readline().rstrip()
key = "keyence"

for i in range(len(s)):
    for j in range(len(s)-i):
        if s[:i]+s[j:] == key:
            print("YES")
            exit()

print("NO")