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) and S.find(r):
            if S.find(l) + i <= S.find(r):
                print("Yes")
                return
    print("No")
    return


if __name__ == "__main__":
    main()
