n = gets.chomp.to_i
s = "keyence"
strings = []
strings << n
strings << s

l = strings.inject { |l, s| l = l.chop while l != s[0...l.length]; l }
m = s[l.length..s.length - 1]
if n.end_with?(m)
  puts "YES"
end
