$\space \space$*"So, people of Stormwind! Let us unite this day. Let us renew our promise to uphold and protect the Light, and together we will face down this dark new storm and stand firm against it—as humanity always has… and humanity always will!"*
$\space \space$*The crowd saved its greatest roars for the end. A chorus of "Long live King Varian! Long live King Varian!" rose into the sky with vigor and conviction. The cheers were unending, echoing deep into Elwynn Forest and faintly reaching even the distant peaks of the Redridge Mountains.*
Varian Wrynn gained a rectangular piece of gold in the battle, with length $n$ and width $m$. Now he wants to draw some lines on the gold, so that later he can cut the gold along the lines.
The lines he draws should satisfy the following requirements:
1. The endpoints of the lines should be on the boundary of the gold.
2. The lines should be parallel to at least one boundary of the gold.
3. After cutting along all the lines, each piece of gold is a rectangle with integer length and width.
4. After cutting along all the lines, the area of each piece of gold should be at least $k$.
5. Two lines should not share more than one common points.
Varian Wrynn wants to cut the gold in such a way that maximizes the lines he draws.
As Alliance's Supreme King, he certainly doesn't have time to do this. So he finds you! Please help him to cut the gold!