s = input().rstrip()
k = 0
e = 0
y = 0
c = 0
for x in s:
	if x == 'k': k += 1
	if x == 'e': e += 1
	if x == 'y': y += 1
	if x == 'c': c += 1

if k >=1 and e >= 3 and y >= 1 and c >= 1 : print('YES')
else: print('NO')