s=input()
string="keyence"
flag1=0
flag2=0
flag3=0
v=0

for i in range(len(s)):
  if s[i]==string[v]:
    v+=1
    if flag1==1:
      flag2=1
  else:
    flag1=1
    if flag1==1 and flag2==1:
      print("NO")
      exit()

if flag1==0 and flag2==0:
  print('YES')
elif flag2==0:
  print('NO')
else:
  print('YES')
