k = "keyence"
s = input()
j = 0
state = 0
flag = True
for i in range(len(s)):
    if state == 0:
        if s[i] != k[j]:
            state = 1
        else:
            j += 1
    elif state == 1:
        if s[i] == k[j]:
            state = 2
            j += 1
    elif state == 2:
        if s[i] != k[j]:
            flag = False
            break
        else:
            j += 1
    if j == len(k):
        if i == len(s)-1:
            break
        elif state == 0:
            break
        else:
            flag = False
            break
if j != len(k):
    flag = False
if flag:
    print("YES")
else:
    print("NO")