import sys

s = input()

for i in range(len(s)):
    for j in range(len(s)-i):
        l_s = s[:i]
        r_s = s[j:]
        ans = l_s+r_s
        
        if ans == 'keyence':
            print('YES')
            sys.exit()
        
    
print('NO')