def main():

    S = input()

    N = len(S)

    ans = "keyence"

    for i in range(N):

        for j in range(N+1):

            T = S[:i] + S[i+j:]  # S[i:i+j]を取り除く

            if T == ans:

                return print("YES")



    print("NO")





if __name__ == '__main__':

    main()

def main():

    S = input()

    N = len(S)

    for i in range(N):

        for j in range(N+1):

            T = S[:i] + S[i+j:]  # S[i:i+j]を取り除く

            if T == "keyence":

                return print("YES")

    print("NO")





if __name__ == '__main__':

    main()

def main():
    S = input()
    N = len(S)
    ans = "keyence"
    for i in range(N):
        for j in range(N + 1):
            T = S[:i] + S[i + j :]  # S[i:i+j]を取り除く
            if T == ans:
                return print("YES")
    print("NO")


if __name__ == "__main__":
    main()

def main():
    S = input()
    N = len(S)
    for i in range(N):
        for j in range(N + 1):
            T = S[:i] + S[i + j :]  # S[i:i+j]を取り除く
            if T == "keyence":
                return print("YES")
    print("NO")


if __name__ == "__main__":
    main()

-    ans = "keyence" -            if T == ans: +            if T == "keyence":