s = input()
o = ""
c = 'keyence'
j = 0
l = []
for i in range(len(s)):
    if(s[i] == c[j]):
        j += 1
        l.append(i)
c = 0
l.append(len(s))
for i in range(len(l) - 1):
    if(l[i+1]-l[i] > 1):c += 1
if(c > 1 or len(l) != 8):print('NO')
else:print('YES')