S = input()
key = 'keyence'
index_num = -1
for i in range(len(key)):
    if S[i] != key[i]:
        index_num = i
        break
else:
    print('YES')
    exit()

string = S[:index_num] + S[-index_num-1:]
if string == key:
    print('YES')
else:
    print('NO')