S = input()
ls = ['k', 'e', 'y', 'e', 'n', 'c', 'e']
is_ng = True
for i in range(len(S)-len(ls)+1):
    if S[i] == 'k':
        idx = 0
        tmp = 0
        for j in range(i, len(S)):
            if S[j] == ls[idx]:
                if tmp == 1:
                    tmp = 2
                idx += 1
            else:
                if tmp == 0:
                    tmp = 1
                elif tmp==2:
                    break
                continue
            if idx == len(ls):
                is_ng = False
print('YNEOS'[is_ng::2])