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

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


print("YES" if ptr == 7 and cnt <= 1 else "NO")
