s = raw_input().strip()
t = 'keyence'
for i in xrange(7):
    if s[i] != t[i]:
        break
else:
    i = 8
for j in xrange(7):
    if s[-j-1] != t[-j-1]:
        break
else:
    j = 8
print "YES" if i + j >= 7 else "NO"
