s = input()
a = 0
for i in range(1,len(s)-1):
    if s[i-1] == "k" and s[i] == "e" and s[i+1] == "y":
        a += 1
        break

for j in range(1,len(s)-1):
    if s[j-1] == "e" and s[j] == "n" and s[j+1] == "c" and s[j+2] == "e":
        a += 1
        break

if a == 2:
    print("YES")
else:
    print("NO")