L = list(input())
A = list('keyence')

index = 0
prev = -1
for a in A:
    try:
      if 0 <= L[index:].index(a):
          index = index + L[index:].index(a) + 1
          continue
    except:
        print("NO")
        exit()
print("YES")