
def n_gram(target, n):
    result = []
    for i in range(0, len(target) - n + 1):
        result.append(target[i:i + n])

    return result

x = input()
true="keyence"    
bigram_t = n_gram(true,2)
bigram_x = n_gram(x,2)
cnt=0
for i in bigram_x:
    for j in bigram_t:
        if j == i:
            cnt += 1
print("YES") if cnt >= len(bigram_t)-1 else print("NO")