import copy
s=input()
check="keyence"
tmp=0
for i in s:
  if i == check[tmp]:
    tmp+=1
  else:
    break
  if tmp == 7:
    print("YES")
    exit()
tmp2=copy.copy(tmp)
for i in s[tmp:]:
  if i != check[tmp]:
    tmp2+=1
  else:
    break

if tmp2 == len(s):
  print("NO")
  exit()
#print(s[tmp2:],tmp2,tmp)
for i in range(tmp2, len(s)):
  if s[i] == check[tmp]:
    tmp+=1
  else:
    print("NO")
    exit()
  if tmp == 7:
    tmp3=i
    break
if tmp3 == len(s)-1:
  print("YES")
else:
  print("NO")