S = list(input())
s1 = list("keyence")

x = 0
y = 0
z = [0]
for i in range(len(S)):
  if x <= 6:
    #print(S[i])
    #print(s1[x])
    if S[i] == s1[x]:
      x += 1
      z.append(0)
    elif x==0:
      z.append(0)
    else:
      if z[i] == 1:
        z[i] = 0
        z.append(1)
      else:
        z.append(1)
  else:
    break