S = input()
K = 'keyence'

bf = False
judge = False
kn = 0
for i in range(len(S)):
    if kn == 7:
        break
    if S[i] == K[kn]:
        if bf == True:
            judge = True
        kn += 1
    else:
        if judge == True:
            print('NO')
            exit()
        if bf == True:
            continue
        else:
            bf = True

if kn == 7:
    print('YES')
else:
    print('NO')