#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s, key = "eyence";
  cin >> s;
  for (long i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      long l = 0, ind = 0;
      bool broken = false, found = false;
      for (long j = i + 1; j < s.size(); j++) {
        if (s[j] == key[l]) {
          if (l == (long)key.size() - 1) {
            found = true;
            break;
          }
          l++;
          continue;
        } else if (!broken) {
          ind = l;
          broken = true;
          while (j < s.size() && s[j] != key[l]) j++;
          if (j == s.size()) break;
          j--;
        } else {
          broken = false;
          l = ind;
          j--;
        }
      }
      if (found) {
        cout << "YES";
        exit(0);
      }
    }
  }
  cout << "NO";
}
