“That sounds a lot like a perpetual motion machine.”
It “is” as long as the ship keeps moving or the wind blows (there is energy input).