S = str(input())
N = len(S)

for i in range(N):
  for j in range(i+1,N):
    for k in range(j+1,N):
      for l in range(k+1,N):
        if S[i:j+1] + S[k:l+1] == 'keyence':
          print('YES')
          exit()

print('NO')