A well-known internet company runs a web photo service that lets users control a high-performance telescope and photograph events in the sky. A record-breaking meteor shower is coming, and the company is holding a contest: whoever captures a single photo containing the most meteors wins. The trajectory of every meteor is published in advance, so the winning move is to compute the exact moment when the telescope frame holds the largest number of meteors.
There are n meteors, each in uniform linear motion. Meteor mi is at position pi+t⋅vi at time t, where t is a non-negative real number, pi=(xi,yi) is its starting point, and vi=(ai,bi) is its non-zero velocity vector. For example, if pi=(1,3) and vi=(−2,5), then at t=0.5 the meteor is at (1,3)+0.5⋅(−2,5)=(0,5.5).
The telescope frame is an axis-aligned rectangle whose lower-left corner is (0,0) and whose upper-right corner is (w,h). A meteor counts as being in the frame only when it is strictly in the interior, never on the boundary. In Figure 1, for instance, some starting points never enter the interior at all and so can never be photographed. Compute a time at which the number of meteors inside the frame is as large as possible, and output that maximum count.

Figure 1
The input is read from standard input and contains T test cases. The first line holds the integer T. Each test case is:
Write to standard output. For each test case, print on its own line the maximum number of meteors that can be inside the telescope frame at a single moment.