import re
s = input()
ok = False
if re.match(r'.*keyence', s): ok = True
if re.match(r'k.*eyence', s): ok = True
if re.match(r'ke.*yence', s): ok = True
if re.match(r'key.*ence', s): ok = True
if re.match(r'keye.*nce', s): ok = True
if re.match(r'keyen.*ce', s): ok = True
if re.match(r'keyenc.*e', s): ok = True
if re.match(r'keyence.*', s): ok = True
print('YES' if ok else 'NO')