s = input()
k_index = []
k = 'keyence'

for i in range(len(s)):
    if s[i] == k[0]:
        k_index.append(i)

ans = 'NO'
for i in k_index:
    j = 0
    for a in range(len(s[i:])):
        if s[i+a] == k[j]:
            j += 1
            if j == len(k):
                ans = 'YES'
                break
        else:
            if k[j:] in s[i:]:
                ans = 'YES'
            break
    if ans == 'YES':
        break

print(ans)