import sys
S=(input())

key=['k','e','y','e','n','c','e']
ans=''
i=0
number=[]

if(S=="keyence"):
    print("YES")
    sys.exit()

for n,s in enumerate(S):
    if(s==key[i]):
        ans+=s
        i+=1
    else:
        number.append(n)

pre=number.pop(0)
a=pre
for n in number:
    if(pre!=(n-1)):
        print("NO")
        sys.exit()
    pre=n
if(ans!="keyence"):
    print('NO')
else:
    print('YES')