#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.14159265359;
const long long MOD = (long long)998244353ll;
const long long MAXN = (long long)2e6 + 10;
const long long INF = (long long)10000000000ll;
const long double EPS = (long double)1e-8;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  long long n = s.size();
  string s1 = "keyence", s2 = "ecneyek";
  long long p1 = 0;
  long long p2 = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == s1[p1]) p1++;
    if (p1 == 7) break;
  }
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] == s2[p2]) p2++;
    if (p2 == 7) break;
  }
  cout << (p1 + p2 >= 7 ? "YES" : "NO");
  return 0;
}
