import re
L = input()
k1 = L.count("k")
e3 = L.count("e")
y1 = L.count("y")
n1 = L.count("n")
c1 = L.count("c")
if k1 >= 1 and e3 >= 3 and y1 >= 1 and n1 >= 1 and c1 >= 1:
    if re.match("k.*eyence", L) or re.match("ke.*yence", L) or re.match("key.*ence", L) or re.match("keye.*nce", L) or re.match("keyen.*ce", L) or re.match("keyenc.*e", L) or re.match("[keyence]+", L):
        print("YES")
    else:
        print("NO")
else:
    print("NO")