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