s = input()
t = "keyence"
c = 0
for i in t:
    if c == -1 or c == len(s)-1:
        c = -1
        break;
        if c!=0 :
            c+=1
    c = s.find(i,c)

if c == -1:
    print("NO")
else:
    print("YES")
