s = input()
key = "keyence"
ptr = 0
cnt = 0
m = -1
f = True
if s == key:
    print("YES")
    exit()

for i in range(len(s)):
    if ptr != 7 and s[i] == key[ptr]:
        ptr += 1
    else:
        if m == -1 or m + 1 == i:
            m = i
        else:
            f = False

if f:
    f = (ptr == 7)

print("YES" if f else "NO")