Nine Years war and long Ottoman war