#include <bits/stdc++.h>
using namespace std;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string t = "keyence";
  long long cnt = 0;
  for (long long i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      long long k = 1;
      long long check = 0;
      cnt = 1;
      for (long long j = i + 1; j < s.size(); j++) {
        if (s[j] == t[k])
          cnt++, k++;
        else {
          if (check == 0) {
            while (s[j] != t[k]) j++;
            k++;
            cnt++;
            check++;
          } else
            break;
        }
      }
      if (cnt == t.size()) {
        long long ll, lll;
        for (long long l = 0; l < s.size(); l++) {
          if (s[l] == 'k') ll = l;
        }
        for (long long l = s.size() - 1; l >= 0; l--) {
          if (s[l] == 'e') lll = l;
        }
        if (ll >= 1 && lll < s.size() - 1) continue;
        cout << "YES" << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
