S = input()
x = 'keyence'

ans = 'NO'
for i in range(7):
    l = x[:i]
    r = x[i:]
    idxl = S.find(l)
    if idxl != -1:
        idxr = S.find(r,idxl+len(l))
        if idxr != -1:
            ans = 'YES'
            break
print(ans)