moji = input()
if moji.find('k') >= 0 and moji.find("eyence") >= 0 and moji.find('k')<moji.find("eyence"):
    print("YES")
elif moji.find('ke') >= 0 and moji.find("yence") >= 0 and moji.find('ke')<moji.find("yence"):
    print("YES")
elif moji.find('key') >= 0 and moji.find("ence") >= 0 and moji.find('key')<moji.find("ence"):
    print("YES")
elif moji.find('keye') >= 0 and moji.find("nce") >= 0 and moji.find('keye')<moji.find("nce"):
    print("YES")
elif moji.find('keyen') >= 0 and moji.find("ce") >= 0 and moji.find('keyen')<moji.find("ce"):
    print("YES")
elif moji.find('keyenc') >= 0 and moji.find("e") >= 0 and moji.find('keyenc')<moji.find("e"):
    print("YES")
elif "keyence" in moji:
    print("YES")
else:
    print("NO")