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

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