S = list(input())
key = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
le = len(S)
n = 0
r = -1
l = -1

for i in range(le):
    s = S[i]
    if s == key[n]:
        n += 1
    elif r == -1:
        r = i
    elif l == -1:
        l = i
    elif l == i - 1:
        l = i
    else:
        print("NO")
        break
else:
    if l == le - 1:
        print("NO")
    else:
        print("YES")
