#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  std::string::size_type npos = std::string::npos;
  if (s.find("k") != npos && s.find("eyence")) {
    cout << "YES";
    return 0;
  }
  if (s.find("ke") != npos && s.find("yence")) {
    cout << "YES";
    return 0;
  }
  if (s.find("key") != npos && s.find("ence")) {
    cout << "YES";
    return 0;
  }
  if (s.find("keye") != npos && s.find("nce")) {
    cout << "YES";
    return 0;
  }
  if (s.find("keyen") != npos && s.find("ce")) {
    cout << "YES";
    return 0;
  }
  if (s.find("keyenc") != npos && s.find("e")) {
    cout << "YES";
    return 0;
  }
  if (s.find("keyence") != npos) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
}
