For each test case, output for each query:
One line with an integer s: the number of solutions.
min(1000, s) lines, each a solution formatted as two dictionary words separated by a hyphen (-).
The solutions to a single query must be ordered lexicographically. If the number of solutions exceeds 1000, then only output the first 1000 solutions.
Notes
If s and t are strings of equal length and si denotes the ith character of s, then s precedes t lexicographically if for some i: si < ti and sj = tj for all j < i. In this problem statement, the hyphen precedes all letters lexicographically.