def resolve():
    s = input()
    key = "keyence"
    if key in s:
        print("YES")
        return 0
    for i in range(1, len(key)):
        k1, k2 = key[:i], key[i:]
        if s.find(k1) < s.find(k2):
            print("YES")
            return 0
    print("NO")
    return 0


if __name__ == "__main__":
    resolve()
