S = [i for i in list(input())]
k = ['k', 'e', 'y', 'e', 'n', 'c', 'e'] + ['_']*100
N = len(S)
m = 0;c=0
flag=False
for i in S:
    if i == k[m]:
        m+=1
        if flag:
            flag = False
    else:
        if not flag: c+=1
        flag=True
# print(i, m, c)
if c<=1 and m==7: print('YES')
else: print('NO')