#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long double EPS = 1e-10;
const int dyx[4][2] = {{0, 1}, {-1, 0}, {0, -1}, {1, 0}};
string keyence = "keyence";
int main() {
  string s;
  cin >> s;
  int k = 0;
  for (int i = 0; i < s.length() && k < 7; ++i) {
    if (s[i] == keyence[k]) ++k;
  }
  cout << ((k == 7) ? "YES" : "NO") << endl;
}
