import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

bool calc(string s) {
    int p = 0;
    foreach (c; "keyence") {
        bool found = false;
        while (p < s.length) {
            if (s[p] == c) {
                p++;
                found = true;
                break;
            }
            else p++;
        }

        if (!found) return false;
    }
    return true;
}

void main() {
    string s = read!string;
    writeln(calc(s) ? "YES" : "NO");
}
