S = 'keyence'
s = input()

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