S = input()
n = len(S)
flag = 0
if S[:1] == "k" and S[n-6:] == "eyence":
    flag = 1
elif S[:2] == "ke" and S[n-5:] == "yence":
    flag = 1
elif S[:3] == "key" and S[n-4:] == "ence":
    flag = 1
elif S[:4] == "keye" and S[n-3:] == "nce":
    flag = 1
elif S[:5] == "keyen" and S[n-6:] == "ce":
    flag = 1
elif S[:2] == "keyenc" and S[n-6:] == "e":
    flag = 1
if flag:
    print("YES")
else:
    print("NO")