def main():
    S = input()
    i = 0
    ans = "keyence"
    for s in S:
        if s == ans[i]:
            i += 1
        if i == 7:
            break
    print("YES" if i == 7 else "NO")


if __name__ == '__main__':
    main()
