# -*- 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
#
"""
 
TARGET = "keyence"
global CREDIT
CREDIT = True
 
 
def get_input():
    return input()
 
def solve(s):
    """
    >>> solve("keyence")
    YES
    >>> solve("keyofscience")
    YES
    >>> solve("ashlfyha")
    NO
    """
    pos = 0
 
    for i in TARGET:
        if CREDIT:
            pos = mog(s,i,pos)
            if pos == -1:
                return "NO"
        else:
            pos = mogmog(s,i,pos)
            if pos == -1:
                return "NO"
    if CREDIT:
        return "YES"
    else:
        if pos == len(s):
            return "YES"
        else:
            return "NO"
def mogmog(original, target, pos):
    """
    >>> mog("keyence", "k", 0)
    1
    >>> mog("aaa", "k", 0)
    -1
    """
    if len(original) == pos:
        return -1
    if original[pos] == target:
        return pos + 1
    else:
        return -1
 
def mog(original, target, pos):
    """
    >>> mog("keyence", "k", 0)
    1
    >>> mog("aaa", "k", 0)
    -1
    """
    if len(original) == pos:
        return -1
    if original[pos] == target:
        return pos + 1
    else:
        global CREDIT
        CREDIT = False
        return mog(original, target, pos+1)
 
if __name__ == '__main__':
    print(solve(get_input()))