import re
str_in_org = input()
KEYENCE = 'keyence'
flag = False
for n in range(1,7):
    str_in = str_in_org
    str_div1 = KEYENCE[:n]    
    str_div2 = KEYENCE[n:]
    if( str_div1 in str_in ):
        str_in = re.split( str_div1, str_in, 2 )[1]
        if( str_div2 in str_in ):
            flag = True
if flag == True :
    print ('YES')
else:
    print ('NO')
