import re

S = input()
    
if re.search(".*keyence",S):
    print("YES")
elif re.search("k.*eyence",S):
    print("YES")
elif re.search("ke.*yence",S):
    print("YES")
elif re.search("key.*ence",S):
    print("YES")
elif re.search("keye.*nce",S):
    print("YES")
elif re.search("keyen.*ce",S):
    print("YES")
elif re.search("keyenc.*e",S):
    print("YES")
elif re.search("keyence.*",S):
    print("YES")
else:
    print("NO")