#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  while (1) {
    int a = s.find("keyence");
    if (a != -1) {
      cout << "YES" << endl;
      break;
    }
    int b = s.find("keyenc");
    int b1 = s.find("e", b);
    if (b != -1 && b1 != -1) {
      cout << "YES" << endl;
      break;
    }
    int d = s.find("keyen");
    int d1 = s.find("ce", d);
    if (d != -1 && d1 != -1) {
      cout << "YES" << endl;
      break;
    }
    int e = s.find("keye");
    int e1 = s.find("nce", e);
    if (e != -1 && e1 != -1) {
      cout << "YES" << endl;
      break;
    }
    int c = s.find("key");
    int c1 = s.find("ence", c);
    if (c != -1 && c1 != -1) {
      cout << "YES" << endl;
      break;
    }
    int f = s.find("ke");
    int f1 = s.find("yence", f);
    if (f != -1 && f1 != -1) {
      cout << "YES" << endl;
      break;
    }
    int g = s.find("k");
    int g1 = s.find("eyence", g);
    if (g != -1 && g1 != -1) {
      cout << "YES" << endl;
      break;
    } else {
      cout << "NO" << endl;
      break;
    }
  }
}
