s = input()
k = 'keyence'
i = 0
flag = 0
ans = 'YES'
for a in s:
    if a == k[i]:
        i += 1
        if flag == 0:
            flag = 1 # reading 1st half
        elif flag == 2:
            flag = 3 # reading 2nd half
    elif flag == 1: # end of 1st half
        flag = 2 # reading middle
    elif flag == 3:
        ans = 'NO'
        break

if flag == 0:
    ans = 'NO'
print(ans)