S = input()

flag = False
for i in range(len(S)):
    for j in range(i, len(S)-i):
        s = S[:i] + S[j:]
        if s == 'keyence':
            flag = True

if flag:
    print('YES')
else:
    print('NO')