import sys
# sys.setrecursionlimit(100000)


def input():
    return sys.stdin.readline().strip()


def input_int():
    return int(input())


def input_int_list():
    return [int(i) for i in input().split()]


def main():
    S = input()
    key = "keyence"
    if key in S:
        print("YES")
        return

    for i in range(1, 6):
        l = key[:i]
        r = key[i:]
        if S.find(l) != -1 and S.find(r) != -1:
            l_ptr = S.find(l)
            r_ptr = S.find(r)
            if l_ptr < r_ptr:
                print("YES")
                return
    print("NO")
    return


if __name__ == "__main__":
    main()
