# B - KEYENCE String
S = input()
K = list('keyence')
count = 0
idx_k = 0
is_NG = False

for s in S:
    if K[idx_k]==s:
        if is_NG == True:
            is_NG = False    
        idx_k += 1
    else:
        if is_NG == False:
            count +=1
            is_NG = True
  
if count<=1 and idx_k==7:
    print('YES')
else:
    print('NO')
