// File: /workspace/github_cpp_makefile_star2_O1/Laakeri[P]Triangulator/src/hyper.cpp
// Function: Hyper::solve()
void solve() {
	Timer timer;
	timer.start();
	HyperIO io;
	vector<vector<int> > hEdges = io.readInput(cin);
	set<pair<int, int> > pEdges;
	for (auto& he : hEdges) {
		for (int i = 0; i < (int)he.size(); i++) {
			for (int ii = i+1; ii < (int)he.size(); ii++) {
				pEdges.insert({he[i], he[ii]});
			}
		}
	}
	Graph pGraph(pEdges);
	vector<vector<int> > hes = hEdges;
	for (auto& he : hes) {
		for (int& x : he) {
			x = pGraph.mapInto(x);
		}
		sort(he.begin(), he.end());
	}
	SetCover::init(hes);
	vector<int> vert(pGraph.n);
	for (int i = 0; i < pGraph.n; i++) {
		vert[i] = i;
	}
	auto sol = SolveGraph::solveGraph(pGraph, 0, 0, (int)hes.size(), vert);
	sol.S = pGraph.mapBack(sol.S);
	io.printFill(cout, sol.S);
	cerr<<"Generalized hypertreewidth: "<<sol.F<<endl;
	cerr<<"*Fill edges: "<<sol.S.size()<<endl;
	cerr<<"Time "<<timer.getTime().count()<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
leaq 0x190(%rsp), %rbx
movq %rbx, %rdi
callq 0x270c8
movq %rbx, %rdi
callq 0x270d4
xorps %xmm0, %xmm0
leaq 0xd0(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq 0x28029(%rip), %rdx     # 0x35fd8
leaq 0xb8(%rsp), %rdi
callq 0x10562
leaq 0x168(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0xb8(%rsp), %r15
movq 0xc0(%rsp), %rax
movq %rax, 0x78(%rsp)
cmpq %rax, %r15
je 0xe0a4
leaq 0x160(%rsp), %rbx
leaq 0x108(%rsp), %r14
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x2, %rax
testl %eax, %eax
jle 0xe095
movl $0x1, %r12d
xorl %ebp, %ebp
movq 0x8(%r15), %rax
subq (%r15), %rax
leaq 0x1(%rbp), %rcx
shrq $0x2, %rax
cltq
movq %rcx, 0x80(%rsp)
cmpq %rax, %rcx
jge 0xe078
movq %r12, %r13
movq (%r15), %rax
movl (%rax,%rbp,4), %ecx
movl %ecx, 0x108(%rsp)
movl (%rax,%r13,4), %eax
movl %eax, 0x10c(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8e22
incq %r13
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x2, %rax
cmpl %eax, %r13d
jl 0xe042
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x2, %rax
cltq
incq %r12
movq 0x80(%rsp), %rbp
cmpq %rax, %rbp
jl 0xe021
addq $0x18, %r15
cmpq 0x78(%rsp), %r15
jne 0xe00a
leaq 0x108(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x92a6
leaq 0x28(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x4164
movq 0x28(%rsp), %r12
movq 0x30(%rsp), %r13
cmpq %r13, %r12
je 0xe148
leaq 0x108(%rsp), %rbx
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe104
movl (%r14), %esi
movq %rbx, %rdi
callq 0xa32a
movl %eax, (%r14)
addq $0x4, %r14
jmp 0xe0eb
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe13f
movq %r15, %rax
subq %r14, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0xac3d
movq %r14, %rdi
movq %r15, %rsi
callq 0xad20
addq $0x18, %r12
cmpq %r13, %r12
jne 0xe0e2
leaq 0xf0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4164
leaq 0xf0(%rsp), %rdi
callq 0x22bf4
leaq 0xf0(%rsp), %rdi
callq 0x41fe
movslq 0x158(%rsp), %rsi
leaq 0x60(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xa6ba
cmpl $0x0, 0x158(%rsp)
jle 0xe1af
movq 0x60(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
movslq 0x158(%rsp), %rdx
cmpq %rdx, %rcx
jl 0xe19c
movq 0x30(%rsp), %rax
subq 0x28(%rsp), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %r8d # imm = 0xAAAAAAAB
leaq 0x8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0x60(%rsp), %r9
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xce81
leaq 0x10(%rsp), %rbx
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x402a
leaq 0x40(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x9f86
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
testq %rdi, %rdi
je 0xe24a
subq %rdi, %rsi
callq 0x2210
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xe261
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xe27e
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x402a
movq 0x27d33(%rip), %rsi     # 0x35fc8
leaq 0xd0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x108a6
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0xe2c7
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x27d22(%rip), %rdi     # 0x35ff0
leaq 0x1c778(%rip), %rsi     # 0x2aa4d
movl $0x1c, %edx
callq 0x2250
movl 0x8(%rsp), %esi
movq 0x27d06(%rip), %rdi     # 0x35ff0
callq 0x2300
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq 0x27cd0(%rip), %rdi     # 0x35ff0
leaq 0x1bef0(%rip), %rsi     # 0x2a217
movl $0xd, %edx
callq 0x2250
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movq 0x27caa(%rip), %rdi     # 0x35ff0
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq 0x27c74(%rip), %rdi     # 0x35ff0
leaq 0x1c162(%rip), %rsi     # 0x2a4e5
movl $0x5, %edx
callq 0x2250
leaq 0x190(%rsp), %rdi
callq 0x2711a
movq 0x27c4f(%rip), %rdi     # 0x35ff0
callq 0x22d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe3e7
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xe3fe
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x28(%rsp), %rdi
callq 0x41fe
leaq 0x140(%rsp), %rdi
callq 0x41fe
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
callq 0x43b8
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xe43e
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x160(%rsp), %rdi
callq 0x44da
leaq 0xb8(%rsp), %rdi
callq 0x41fe
leaq 0xd0(%rsp), %rdi
callq 0x4406
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0xe4e1
movq 0x98(%rsp), %rsi
jmp 0xe4a9
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xe4e1
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xe4e1
jmp 0xe4de
movq %rax, %rbx
jmp 0xe4f8
jmp 0xe513
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x41fe
jmp 0xe516
jmp 0xe513
movq %rax, %rbx
jmp 0xe520
jmp 0xe52f
movq %rax, %rbx
jmp 0xe54c
jmp 0xe4de
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe4f8
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xe516
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xe516
jmp 0xe513
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x41fe
leaq 0x108(%rsp), %rdi
callq 0x412c
jmp 0xe532
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x44da
leaq 0xb8(%rsp), %rdi
callq 0x41fe
leaq 0xd0(%rsp), %rdi
callq 0x4406
movq %rbx, %rdi
callq 0x2310