k = input()
n = 'keyence'
for i in range(len(k)):
    if k[i] == 'k':
        z = 0
        for j in range(len(n)):
            if k[i+j] != n[j]:
                z = 1
                for p in range(i+j, len(k)):
                    
                    if n[j:] in k[p:]:
                        break
                        break
                    else:
                        z = 2
                        break
            break
            
    if i == len(k):
        z = 2
    

if z == 0 or z == 1:
    print('YES')
else:
    print('NO')