#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int MOD = 1000000007;
vector<long long> dx = {0, 1, 0, -1};
vector<long long> dy = {1, 0, -1, 0};
vector<long long> dx2 = {-1, 0, 1, -1, 1, -1, 0, 1};
vector<long long> dy2 = {-1, -1, -1, 0, 0, 1, 1, 1};
int main(int argc, char const* argv[]) {
  string s;
  cin >> s;
  string mae = "", usiro = "";
  string k = "keyence";
  if (s == k) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < 7; i++) {
    if (s[i] == k[i]) {
      mae += s[i];
    } else {
      break;
    }
  }
  for (int i = 6; i >= 0; i--) {
    if (s[s.size() - 7 + i] == k[i]) {
      usiro += k[i];
    }
  }
  reverse((usiro).begin(), (usiro).end());
  if (mae + usiro == k) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
