S = eval(input())





def f():

    if S == "keyence":

        print("YES")

    else:

        n = len(S)

        for i in range(n):

            for j in range(i, n):

                T = ""

                for k in range(n):

                    if i <= k <= j:

                        continue

                    else:

                        T += S[k]

                if T == "keyence":

                    print("YES")

                    return

        else:

            print("NO")





f()

S = eval(input())





def f():

    for i in range(len(S)):

        for j in range(len(S)):

            if S[:i] + S[j:] == "keyence":

                print("YES")

                return

    else:

        print("NO")





f()

S = eval(input())


def f():
    if S == "keyence":
        print("YES")
    else:
        n = len(S)
        for i in range(n):
            for j in range(i, n):
                T = ""
                for k in range(n):
                    if i <= k <= j:
                        continue
                    else:
                        T += S[k]
                if T == "keyence":
                    print("YES")
                    return
        else:
            print("NO")


f()

S = eval(input())


def f():
    for i in range(len(S)):
        for j in range(len(S)):
            if S[:i] + S[j:] == "keyence":
                print("YES")
                return
    else:
        print("NO")


f()

-    if S == "keyence": -        print("YES") +    for i in range(len(S)): +        for j in range(len(S)): +            if S[:i] + S[j:] == "keyence": +                print("YES") +                return -        n = len(S) -        for i in range(n): -            for j in range(i, n): -                T = "" -                for k in range(n): -                    if i <= k <= j: -                        continue -                    else: -                        T += S[k] -                if T == "keyence": -                    print("YES") -                    return -        else: -            print("NO") +        print("NO")