s = input()
keyence = 'keyence'
for i in range(8):
    fs, es = keyence[:i], keyence[i:]
    # print(fs, es)
    fsi = s.find(fs)
    esi = s.find(es)
    # print(fsi, esi)
    if fsi + len(fs) <= esi and fsi >= 0 and esi >= 0:
        print('YES')
        exit()
print('NO')