# _*_ coding:utf-8 _*_
#  Atcoder_KeyencePrograming_Contest-B
#  TODO https://keyence2019.contest.atcoder.jp/tasks/keyence2019_b
import re

def solveProblem(inputStr):
	pattern1 = r"[a-z]*keyence"
	pattern2 = r"k[a-z]*eyence"
	pattern3 = r"ke[a-z]*yence"
	pattern4 = r"key[a-z]*ence"
	pattern5 = r"keye[a-z]*nce"
	pattern6 = r"keyen[a-z]*ce"
	pattern7 = r"keyenc[a-z]*e"
	pattern8 = r"keyence[a-z]*"
	matchOB1 = re.search(pattern1,inputStr)
	matchOB2 = re.search(pattern2,inputStr)
	matchOB3 = re.search(pattern3,inputStr)
	matchOB4 = re.search(pattern4,inputStr)
	matchOB5 = re.search(pattern5,inputStr)
	matchOB6 = re.search(pattern6,inputStr)
	matchOB7 = re.search(pattern7,inputStr)
	matchOB8 = re.search(pattern8,inputStr)
	if matchOB1 != None:
		return "Yes"
	if matchOB2 != None:
		return "Yes"
	if matchOB3 != None:
		return "Yes"
	if matchOB4 != None:
		return "Yes"
	if matchOB5 != None:
		return "Yes"
	if matchOB6 != None:
		return "Yes"
	if matchOB7 != None:
		return "Yes"
	if matchOB8 != None:
		return "Yes"
	return "No"


if __name__ == '__main__':
	S = input().strip()
	solution = solveProblem(S)
	print("{}".format(solution))
