#include <bits/stdc++.h>
using namespace std;
const string X = "keyofscience";
int main() {
  string S;
  cin >> S;
  int N = (int)S.size();
  for (int i = 0; i <= N; i++) {
    for (int j = i; j <= N; j++) {
      if ((i == 0 && j == 0) || (i == N && j == N)) {
        if (S == X) {
          cout << "Yes" << endl;
          return 0;
        }
      }
      string T = S.substr(0, i) + S.substr(j, N - j);
      if (T == X) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
