Gap Theorem on Manifolds Using Ricci Flow