#include <bits/stdc++.h>
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
using namespace std;
long long gcd(long long a, long long b) {
  if (a < b) swap(a, b);
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) {
  long long g = gcd(a, b);
  return a / g * b;
}
bool prime(long long n) {
  for (long long i = 2; i <= sqrt(n); i++) {
    if (n % i == 0) return false;
  }
  return n != 1;
}
const long long MOD = 1000000007;
const long long INF = 1LL << 60;
const long long MAX_N = 100010;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  char tmp[7] = {'k', 'e', 'y', 'e', 'n', 'c', 'e'};
  long long now = 0;
  for (long long i = 0; i < (s.size()); i++) {
    if (now == 7) {
      cout << "YES" << endl;
      return 0;
    }
    if (s[i] == tmp[now]) {
      now++;
    }
  }
  if (now == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
