#include <bits/stdc++.h>
using namespace std;
string q = "keyence";
int main() {
  int k = 0, ans = 0;
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'k') {
      ans = 1;
      for (int j = i + 1; j < s.size(); j++) {
        if (s[j] == q[1]) {
          k = j;
          ans = 1;
          for (int l = 2, j = k + 1; j < s.size(); j++) {
            if (s[j] != q[l]) ans = 0;
            l++;
            if (l > 6) break;
          }
          if (ans != 0) break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e') {
      ans = 1;
      for (int j = i + 2; j < s.size(); j++) {
        if (s[j] == q[2]) {
          k = j;
          ans = 1;
          for (int l = 3, j = k + 1; j < s.size(); j++) {
            if (s[j] != q[l]) ans = 0;
            l++;
            if (l > 6) break;
          }
          if (ans != 0) break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y') {
      ans = 1;
      for (int j = i + 3; j < s.size(); j++) {
        if (s[j] == q[3]) {
          k = j;
          ans = 1;
          for (int l = 4, j = k + 1; j < s.size(); j++) {
            if (s[j] != q[l]) ans = 0;
            l++;
            if (l > 6) break;
          }
          if (ans != 0) break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y' && s[i + 3] == 'e') {
      ans = 1;
      for (int j = i + 4; j < s.size(); j++) {
        if (s[j] == q[4]) {
          k = j;
          ans = 1;
          for (int l = 5, j = k + 1; j < s.size(); j++) {
            if (s[j] != q[l]) ans = 0;
            l++;
            if (l > 6) break;
          }
          if (ans != 0) break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y' && s[i + 3] == 'e' &&
        s[i + 4] == 'n') {
      ans = 1;
      for (int j = i + 5; j < s.size(); j++) {
        if (s[j] == q[5]) {
          k = j;
          ans = 1;
          for (int l = 6, j = k + 1; j < s.size(); j++) {
            if (s[j] != q[l]) ans = 0;
            l++;
            if (l > 6) break;
          }
          if (ans != 0) break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y' && s[i + 3] == 'e' &&
        s[i + 4] == 'n' && s[i + 5] == 'c') {
      ans = 0;
      for (int j = i + 6; j < s.size(); j++) {
        if (s[j] == q[6]) {
          ans = 1;
          break;
        }
      }
      if (ans != 0) break;
    }
    if (s[i] == 'k' && s[i + 1] == 'e' && s[i + 2] == 'y' && s[i + 3] == 'e' &&
        s[i + 4] == 'n' && s[i + 5] == 'c' && s[i + 6] == 'e') {
      cout << "YES";
      exit(0);
    }
  }
  if (ans == 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
