import sys
input = sys.stdin.readline

S = list(input().strip())
t = list("keyence")
    
for i in range(1, 8):
    a, b = t[0:i], t[i:]
    
    f = True
    for j in range(len(S)):
        if f:
            if S[j:i+j] == a:
                f = False
        
        if f == False:
            if S[i+j:] == b:
                print("YES")
                exit()
                
print("NO")