from collections import defaultdict
from collections import deque
import itertools
import copy

def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()

s = list(input())

d = deque(["k","e","y","e","n","c","e"])

for i in s:
	if not d:
		break
	t = d.popleft()
	if t==i:
		continue
	else:
		d.appendleft(t)

if d:
	print("NO")
else:
	print("YES")