# coding: utf-8
# Your code here!

s = input()
a = ["k", "ke", "key", "keye", "keyen", "keyenc"]
b = ["eyence", "yence", "ence", "nce", "ce", "e"]
if s == "keyence":
    print("YES")
    exit(0)
if len(s) > 7:
    if s[7:] == "keyence":
        print("YES")
        exit(0)
    if s[:7] == "keyence":
        print("YES")
        exit(0)
    else:
        for i in range(6):
            if a[i] in s and b[i] in s:
                if s.find(a[i])==0 and s.rfind(b[i])+len(b[i])==len(s):
                    print("YES")
                    exit(0)
                else:
                    print("NO")
                    exit(0)
            else:
                print("NO")
                exit(0)