# keyence2019B - KEYENCE String
def main():
    S = input()
    K = "keyence"
    for i in range(1, 7):
        a, b = K[:i], K[i:]
        if a in S and b in S:
            print("YES")
            break
    else:
        print("NO")


if __name__ == "__main__":
    main()