a = "keyence"
s = gets.chomp

f = a.size.times.map{|i|a[i]==s[i]}
r = a.size.times.map{|i|a[-1-i]==s[-1-i]}

ans = 0
f.each{|b|
  break if !b
  ans+=1
}
r.each{|b|
  break if !b
  ans+=1
}

puts (ans>=7)? "YES":"NO"