s=input()
c=0
if 'keyence' in s:
  c=1
if s[:1]=='k' and s[-6:]=='eyence':
  c=1
if s[:2]=='ke' and s[-5:]=='yence':
  c=1
if s[:3]=='key' and s[-4:]=='ence':
  c=1
if s[:4]=='keye' and s[-3:]=='nce':
  c=1
if s[:5]=='keyen' and s[-2:]=='ce':
  c=1
if s[6:]=='keyenc' and s[-1:]=='e':
  c=1

print('YES' if c==1 else 'NO')