#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s.find("keyence") != string::npos) {
    if (s.find("keyence") == 0 || s.size() - s.find("keyence") == 7) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("k") != string::npos && s.find("eyence") != string::npos) {
    if (s.find("k") == 0 && s.size() - s.find("eyence") == 6) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("ke") != string::npos && s.find("yence") != string::npos) {
    if (s.find("ke") == 0 && s.size() - s.find("yence") == 5) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("key") != string::npos && s.find("ence") != string::npos) {
    if (s.find("key") == 0 && s.size() - s.find("ence") == 4) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("keye") != string::npos && s.find("nce") != string::npos) {
    if (s.find("keye") == 0 && s.size() - s.find("nce") == 3) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("keyen") != string::npos && s.find("ce") != string::npos) {
    if (s.find("keyen") == 0 && s.size() - s.find("ce") == 2) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (s.find("keyenc") != string::npos && s.find("e") != string::npos) {
    if (s.find("keyenc") == 0 && s.size() - s.find("e") == 1) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
