# B_KEYENCE String

import sys

S = list(input())

key = ['k','e','y','e','n','c','e']
i = 0
ng = 0
flg1 = True
flg2 = True
for _ in range(len(S)) :
    if S[_] == key[i] :
        i += 1

if i > 6 :
    print("YES")
else :
    print("NO")
