#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (!b) return a;
  return gcd(b, a % b);
}
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x %= p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  {
    string s;
    cin >> s;
    long long n = s.length();
    long long flg = 0;
    string t = "keyence";
    for (int i = 0; i < 7; i++) {
      string a = t.substr(0, i);
      string b = t.substr(i, 7 - i);
      size_t f = s.find(a);
      size_t ff = s.find(b);
      if (f != string::npos && ff != string::npos) {
        long long x = a.length();
        long long y = b.length();
        if (f != 0) {
          if (f + x == ff && ff + y == n) {
            cout << "YES"
                 << "\n";
            flg = 1;
            break;
          }
        } else if (f == 0 && ff == 0) {
          cout << "YES"
               << "\n";
          flg = 1;
          break;
        } else if (f == 0) {
          if (f < ff && ff + y == n) {
            cout << "YES"
                 << "\n";
            flg = 1;
            break;
          }
        }
      }
    }
    if (flg == 0) {
      cout << "NO"
           << "\n";
    }
  }
  return 0;
}
