S = str(input())
keyence = 'keyence'

if len(S) == 7:
    if S==keyence:
        print('YES')
    else:
        print('NO')
else :
    for i in range(1,7):
      if keyence[:i] in S and keyence[i:] in S[S.index(keyence[:i])+i:] :
          print('YES')
          break
    else:
        print('NO')