#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string t = "keyence";
  if (s == t) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < (t.size()); ++i) {
    bool head = false, tail = false;
    for (int j = 0; j < (s.size()); ++j) {
      if (!head) {
        bool match = true;
        for (int k = 0; k < (i + 1); ++k) {
          if (s[j] != t[i + k]) match = false;
        }
        if (match) {
          head = true;
          j += i;
        }
      } else {
        bool match = true;
        for (int k = 0; k < (t.size() - i); ++k) {
          if (s[j] != t[i + k]) match = false;
        }
        if (match) tail = true;
      }
    }
    if (i == t.size() - 1 && head) tail = true;
    if (tail) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
