s = input()
l = []
i = 0

for w in 'keyence':
    if w in s:
        i += s[i:].find(w)
        l.append(i)
        i += 1

if len(l) == len('keyence') and l== sorted(l):
    print('YES')
else:
    print('NO')