def A():
    S = list(input())
    cnt = 0
    p = 3
    keyence = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
    for i in range(7):
        if S[i] != keyence[i]:
            if i == 0:
                p = 1
            if i < 7:
                p = 2
                cnt = i
                break
            if i >= 7:
                p = 3
    ans = 0
    if S[:7:] == keyence:
        ans = 1
    elif S[len(S) - 7::] == keyence:
        ans = 1
    elif S[len(S) - (7 - cnt)::] == keyence[6 - cnt::]:
        ans = 1
    else:
        ans = -1
    if ans == 1:
        print("YES")
    else:
        print("NO")
A()