S = input()

key = 'keyence'

flg = False
for split in range(1, len(key) + 1):
    a = S.find(key[:split])
    if a != -1:
        b = S[a:].find(key[split:])
        
        if b != -1:
            flg = True
            
            
if flg:
    print('YES')
else:
    print('NO')