S = input()
target = "keyence"
length = len(target)+1

for i in range(length):
  first = target[:i]
  second = target[i:]
  if first in S and second in S and S.find(first) <= S.find(second):
    print("YES")
    exit()
print("NO")