#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
s=input()
r="keyence"
res=False

for i in range(0,len(r)):
  if s.find(r[:i+1])>=0 and s.find(r[-(len(r)-i-1):]):
    res=True
  
if res:
  print('YES')
else:
  print('NO')

