# -*- coding: utf-8 -*-
s = list(input())

ans = "NO"
n = len(s)
if n == 7:
    i = 0
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y' and s[i+3] == 'e' and s[i+4] == 'n' and s[i+5] == 'c' and s[i+6] == 'e':
        ans = "YES"

for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y' and s[i+3] == 'e' and s[i+4] == 'n' and s[i+5] == 'c' and s[i+6] == 'e':
        ans = "YES"
for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y' and s[i+3] == 'e' and s[i+4] == 'n' and s[i+5] == 'c':
        for j in range(i+6, n):
            if s[j] == 'e':
                ans = "YES"
for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y' and s[i+3] == 'e' and s[i+4] == 'n':
        for j in range(i+5, n - 1):
            if s[j] == 'c' and s[j+1] == 'e':
                ans = "YES"
for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y' and s[i+3] == 'e':
        for j in range(i+4, n - 2):
            if s[j] == 'n' and s[j+1] == 'c' and s[j+2] == 'e':
                ans = "YES"
for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e' and s[i+2] == 'y':
        for j in range(i+3, n - 3):
            if s[j] == 'e' and s[j+1] == 'n' and s[j+2] == 'c' and s[j+3] == 'e':
                ans = "YES"
for i in range(n - 7):
    if s[i] == 'k' and s[i+1] == 'e':
        for j in range(i+2, n - 4):
            if s[j] == 'y' and s[j+1] == 'e' and s[j+2] == 'n' and s[j+3] == 'c' and s[j+4] == 'e':
                ans = "YES"
for i in range(n - 7):
    if s[i] == 'k':
        for j in range(i+1, n - 5):
            if s[j] == 'e' and s[j+1] == 'y' and s[j+2] == 'e' and s[j+3] == 'n' and s[j+4] == 'c' and s[j+5] == 'e':
                ans = "YES"
print(ans)
