#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s == "keyence")
    cout << "YES" << endl;
  else if (s == "keyofscience")
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
