s = input()

check = []
keyence = 'keyence'
for i in range(len(keyence)):
    check.append([keyence[:i],keyence[i:]])

for i in check:
    c = 0
    for j in i:
        if j in s:
            c += 1
        if c == 2:
            print('YES')
            quit()
    #print(s,i)
print('NO')