S = 'keyence'
s = input()

for i, _ in enumerate(S):
    index = s.find(S[i:])
    if index > 0 and index + len(S[i:]) == len(s) and s.find(S[:i]) < index:
        print('YES')
        break
else:
    print('NO')
