s = list(input())
ss = ['k','e','y','e','n','c','e']
p = 6
a = 0
b = 0
c = 0
for i in range(len(ss)):
    if s[i] == ss[i]:
        continue
    else:
        a = i
        break
else:
    print('YES')
    exit()



for j in range(len(s)-1,-1,-1):
    if p >= 0 :
        if (s[j] == ss[p]):
            print('ヌッ',c)
            p -= 1
            c += 1
        else:
            b = c
            break
else:
    print('YES')
    exit()

if a+b == 7:
    print('YES')
else:
    print('NO')