import sys

s = input()
if s == "keyence":
    print("YES")
    sys.exit()
if s.count("k") >= 1 and s.count("e") >= 3 and s.count("y") >= 1 and s.count("n") >= 1 and s.count("c") >= 1:
    for i in range(len(s)):
        if s[i] == 'k':
            for j in range(i + 1, len(s)):
                if s[j] == 'e':
                    for k in range(j + 1, len(s)):
                        if s[k] == 'y':
                            for x in range(k + 1, len(s)):
                                if s[x] == 'e':
                                    for y in range(x + 1, len(s)):
                                        if s[y] == 'n':
                                            for z in range(y + 1, len(s)):
                                                if s[z] == 'c':
                                                    for b in range(z + 1, len(s)):
                                                        if s[b] == 'e':
                                                            print("YES")
                                                            sys.exit()


print("NO")
