ans = ['k','e','y','e','n','c','e']
S = input()

N = len(ans)
k = 0
flag =False
mode = 0
for s in S:
    if k == N:
        if mode > 0:
            flag =False
            break
        else:
            break
    if mode == 0:
        if s == ans[k]:
            k += 1
        else:
            mode += 1
    elif mode == 1:
        if s == ans[k]:
            k += 1
            mode += 1
    elif mode ==2:
        if s == ans[k]:
            k += 1
        else:
            mode += 1
    else:
        flag == False
    if k == N:
        if mode<3:
            flag =True
    # print("mode:",mode,"k",k,"s",s)
        # print('complete')
    
if flag:
    print('YES')
else:
    print('NO')