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

if target in S:
    print("YES")
    exit()
else:
    for i in range(1, length):
      first = target[:i]
      second = target[i:]
      if first in S and second in S and S.find(first) < S.rfind(second):
          if S[0:len(first)] + S[len(target)-len(second):len(target)]] == target:
                print("YES")
                exit()
print("NO")
