s = input()
ans = 'keyence'
state = 0
for i in range(len(s)):
    if state == 7:
        break
    elif s[i]==ans[state]:
        state += 1
    else:
        continue
else:
    print('YES' if state==7 else 'NO')