import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7 # 998244353
input=lambda:sys.stdin.readline().rstrip()
def resolve():
    S=input()
    n=len(S)

    for i in range(n-6):
        if(S[:i]+S[n-7+i:]=="keyence"):
            print("YES")
            return

    print("NO")
resolve()