S = str(input())
N =len(S)
flag = False
for i in range(N+1):
    for j in range(i,N+1):
        s = S[:i] + S[j:]
        # print (i, j, s)
        if 'keyence' in s:
            flag = True

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