# -*- coding: utf-8 -*-
# !/usr/bin/env python
# vim: set fileencoding=utf-8 :

"""
#
# Author:   Noname
# URL:      https://github.com/pettan0818
# License:  MIT License
# Created: 日  1/13 21:11:56 2019

# Usage
#
"""
from collections import Counter

def get_input():
    return input()

def solve(s):
    counted = Counter(s)
    v = counted.keys()
    for i in list("keyence"):
        if i in v:
            continue
        else:
            return "NO"
    return "YES"


if __name__ == '__main__':
	print(solve(get_input()))
