text = input()
ans = ["k","e","y","e","n","c","e"]
count = 2
flag = 1
i = 0
plus = 0
for ob in ans:
    if i >= len(text):
        flag = 0
        break
        
    if ob == text[i]:
        i+=1
        continue
    
    else:
        while ob != text[i]:
            i+=1
            if i >= len(text) - 1:
                continue
            else:
                while text[i] == text[i+1]:
                    i+=1
                    if i >= len(text):
                        flag = 0
                        break
            if i >= len(text):
                flag = 0
                break
        i+=1
        count -=1
        if count == 0:
            flag =0
            break
if i < len(text):
    count -=1
    if count == 0:
        flag = 0
if flag == 1:
    print("YES")
else:
    print("NO")