S = input()
N = len(S)
flg = 0
l = 0
for c in 'keyence':
    for i in range(l, N):
        if S[i] == c:
            l = i+1
            break
    else:
        break
else:
    flg = 1
if flg:
    print('YES')
else:
    print('NO')