s = input()
k = 'keyence'
r = 'NO'
for i in range(1, len(k)-1):
    if k[:i] in s and k[i:] in s:
        fid = s.index(k[:i])
        bid = s.index(k[i:])
        if -1<fid<bid:
            r = 'YES'
print(r)