l="keyence"
i=input()
if l in i:
    if i.find(l)==0 or i.find(l)==-7:
        print("YES")
        exit()
for s in range(1,7):
    if (l[:s] in i) and (l[s:] in i):
        if i.find(l[:s]) < i.find(l[s:]):
            print("YES")
            exit()
print("NO")