s=input()
k="keyence"
if s.find(k)!=-1:
    print("YES")
    exit()
for i in range(1,7):
    a=s.find(k[:i],0)
    if a>=0:
        b=s.find(k[i:],a+len(k[:i]))
        if b>0:
            print("YES")
            exit()
print("NO")







