#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1000000007;
const int INF = 2000000000;
long long int N, M;
long long int A[101], X[101], C;
std::string S, T;
bool F = false;
long long int ans = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> S;
  T = "keyence";
  if (S == T) F = true;
  for (int i = 0; i < (6); i++) {
    string x = T.substr(0, i + 1), y = T.substr(i + 1);
    std::string::size_type pos = S.find(x);
    if (pos != std::string::npos) {
      if (S.find(y, pos) != std::string::npos) {
        F = true;
      }
    }
  }
  cout << (F ? "YES" : "NO") << endl;
  return 0;
}
