s = input()

master = "keyence"

i = 0
f = 0

if(master in s):
    print("YES")
else:
    i = 0
    while (s[i] == master[i]):
        i += 1
    if (s[-7+i:] == master[i:]):
        print("YES")
    print("NO")
