The above is a complete solution.
On the other hand, this algorithm is not suitable for now. In ancient times, transportation and communication were not as developed as they are now. You should make full use of the present technology to save your marriage. Remember that fate can be changed. When you find your true love, you can draw again. You will find that your fate may have changed. Remember to cherish your love.