k = input()
n = 'keyence'
z = 0
for i in range(len(k)):
    if k[i] == 'k':
        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
                    else:
                        z += 1
                        break
            
            break
        break
    else:
        z = 2
    

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