S=str(input())
A=[]
for h in range(len(S)):
    for i in range(len(S)):
        for j in range(len(S)):
            for k in range(len(S)):
                if h<=i and i<=j and j<=k:
                    A.append(S[h-1:i]+S[j:k+1])
A.append(S)
if 'keyence' in A:
    print('YES')
else:
    print('NO')