s=list(input())
k=["k","e","y","e","n","c","e"]
ans="NO"
if len(s)>=7:
    while c<7:
        if s[i]!=k[i]:
            break
        c+=1
    for i in range(7-c):
        if s[-i-1]!=k[-i-1]:
            break
    else:
        ans="YES"
print(ans)