K = "keyence"

S = raw_input()
N = len(S)
M = N - 7

if M == 0:
    print "YES" if S == K else "NO"
    exit()

for i in xrange(N):
    S1 = S[:i]
    S2 = S[i+M:]
    T = S1 + S2
    if T == K:
        print "YES"
        exit()

print "NO"
