#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) {
  long long g = gcd(a, b);
  return a / g * b;
}
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const int INF = (int)1e9;
const long long inf = (long long)1e18;
const int mod = 1000000007;
struct aaa {
  aaa() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout << fixed << setprecision(20);
  };
} aaaaa;
int main() {
  string s;
  cin >> s;
  string t = "keyence";
  int cnt = 0;
  int n = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == t[cnt]) {
      cnt++;
    } else {
      n++;
      if (n > 1) break;
    }
  }
  if (cnt == 7) {
    cout << "YES" << '\n';
  } else {
    cout << "NO" << '\n';
  }
}
