str = gets.chomp
count=0

if /^k.*eyence$/ =~ str
    count += 1
elsif /^ke.*yence$/ =~ str
    count +=1
elsif /^key.*ence$/ =~ str
    count+=1
elsif /^keye.*nce$/ =~ str
    count += 1
elsif /^keyen.*ce$/ =~ str
    count += 1
elsif /^keyenc.*e$/ =~ str
    count += 1
end

if count == 1
    puts "YES"
else
    puts "NO"
end