s = input()
t = 'keyence'
cnt = 0
j = False
p = 0
for i in range(len(s)):
  if t[p] == s[i]:
    if j == True:
      j = False
      cnt = cnt + 1
    p = p + 1
  else:
    j = True
print('YES' if p == len(t) and cnt <= 1 else 'N0')