#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  string a;
  cin>>a;
  if(a[0]=="k" and a[1]=="e" and a[2]=="y" and a[a.size()-1]=="e" and a[a.size()-2]=="c" and a[a.size()-3]=="n" and a[a.size()-4]=="e")
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
}