You're in charge of designing a campus network between buildings and are very concerned about its reliability and its cost. Therefore, you decide to add some redundancy to the network while keeping it as inexpensive as possible. Specifically, you want to build the cheapest network such that if any one line fails, all buildings can still communicate. Such a network will be called a minimal reliable net.
There are multiple test cases. Each test case starts with a line containing two integers (n \leq 15) and (m \leq 20) — the number of buildings (numbered through ) and the number of possible connections between buildings. Each of the next lines contains b_1 b_2 (all positive integers), indicating that it costs to connect building b_1 and b_2. All connections are bidirectional.
The last test case contains n = 0 and m = 0 and is not processed.
For each test case, print one line giving the cost of a minimal reliable net. If such a network exists, the output should be of the form:
The minimal cost for test case is .
where is the test case number (starting from ), and is the cost. If there is no reliable net possible, output a line of the form:
There is no reliable net possible for test case .

Example 1