s = gets.chomp
key = "keyence"

if s[0] != "k" || s[-1] != "e"
    puts s =~ /.*#{key}.*/ ? "YES" : "NO"
else
    i = 0
    i += 1 while i < 8 && s[i] == key[i]
    j = 0
    j += 1 while j < 8 && s[-j] == key[-j]

    puts i + j >= 8 ? "YES" : "NO"
end