using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompetitiveProgCsLib
{
	class MainProg
	{
		static string R => Console.ReadLine();
		static int RI => int.Parse(R);
		static double RD => double.Parse(R);
		static int[] RIs => R.Split(' ').Select(int.Parse).ToArray();
		static double[] RDs => R.Split(' ').Select(double.Parse).ToArray();
		static void Out(object obj) => Console.WriteLine(obj);
		static void OutLine<T>(IEnumerable<T> obj, string separateChar) => Out(String.Join(separateChar, obj));
		static void Outb(bool b) => Out(b ? "Yes" : "No");
		static void OutB(bool b) => Out(b ? "YES" : "NO");
		static bool IsIn(int y, int x, int h, int w) => 0 <= x && x < w && 0 <= y && y < h;
		static T MIN<T>(params T[] args) => args.Min();
		static T MAX<T>(params T[] args) => args.Max();

		static void Main(string[] args)
		{
			var s = R;
			var k = "keyence";
			int count = 0;
			bool flg = false;
			bool flg2 = false;
			if(s.Length < k.Length)
			{
				Out("NO");
				return;
			}
			for(int i = 0;i < s.Length;i++)
			{
				if(count >= k.Length)
				{
					Out("NO");
					return;
				}
				if(s[i] == k[count])
				{
					count++;
					if (count == k.Length)
					{
						if (flg)
						{
							if (i + 1 != s.Length)
							{
								Out("NO");
								return;
							}
							else
							{
								Out("YES");
								return;
							}
						}
						else
						{
							Out("YES");
							return;
						}
					}
					if(flg)
					{
						flg2 = true;
					}
				}
				else if (!flg2)
				{
					flg = true;
				}
				else
				{
					Out("NO");
					return;
				}
			}
			OutB(count == k.Length);
		}
	}
}
