The three musketeers Athos, Porthos, Aramis were ordered by the King Louis XIII to carry to completion the task of dispatching the firearms and gunnery required for the war against The Habsburg Empire.The king appoints two solitary provisional guards, Jack and Jill for assisting the musketeers.
Athos calls for the plan and orders that each musketeer shall take a different boat to three different islands and return to the shore once in a while in a specified interval irrespective of they getting the firearms from the island or coming back in an empty boat. The two guards are ordered to be at the shore and unload the firearms from the boats.
If only one of three boats returns with firearms, Jack sums it up and takes care of it.
If two out of three boats return with firearms, Jill carries the whole lot and preserves it.
If all three boats return with firearms then Jack sums up and Jill carries it, there-by both of them will take care of firearms.
In this way, King Louis XIII procures the firearms and gunnery and manages to make the "Battle of Rocroi", which stands as an accomplishment in the history of France.
Narrate the story using logic gates.