// File: /workspace/github_cpp_makefile_star2_O2/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 $0x198, %rsp            # imm = 0x198
leaq 0x180(%rsp), %rbx
movq %rbx, %rdi
callq 0x1e6b4
movq %rbx, %rdi
callq 0x1e6c0
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movq 0x248bd(%rip), %rdx     # 0x2ffd8
leaq 0x30(%rsp), %rdi
callq 0xca1a
leaq 0x140(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq 0x30(%rsp), %r15
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x138(%rsp), %rbx
leaq 0xe0(%rsp), %r14
cmpq 0x20(%rsp), %r15
je 0xb7de
movq (%r15), %rax
movq 0x8(%r15), %rcx
xorl %r13d, %r13d
pushq $0x1
popq %r12
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
movslq %edx, %rdx
cmpq %rdx, %r13
jge 0xb7d8
leaq 0x1(%r13), %rdx
movq %rdx, 0x28(%rsp)
movq %r12, %rbp
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
cmpl %edx, %ebp
jge 0xb7ce
movl (%rax,%r13,4), %ecx
movl %ecx, 0xe0(%rsp)
movl (%rax,%rbp,4), %eax
movl %eax, 0xe4(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7448
incq %rbp
movq (%r15), %rax
movq 0x8(%r15), %rcx
jmp 0xb794
incq %r12
movq 0x28(%rsp), %r13
jmp 0xb776
addq $0x18, %r15
jmp 0xb761
leaq 0xe0(%rsp), %rdi
leaq 0x138(%rsp), %rsi
callq 0x78ec
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3714
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r15
leaq 0xe0(%rsp), %rbx
cmpq %r15, %r14
je 0xb84d
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0xb83b
movl (%r12), %esi
movq %rbx, %rdi
callq 0x856c
movl %eax, (%r12)
addq $0x4, %r12
jmp 0xb820
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x8dde
addq $0x18, %r14
jmp 0xb814
leaq 0xc8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x3714
leaq 0xc8(%rsp), %rdi
callq 0x1aee4
leaq 0xc8(%rsp), %rdi
callq 0x376e
movslq 0x130(%rsp), %rsi
leaq 0x48(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x8852
movq 0x48(%rsp), %rax
xorl %ecx, %ecx
movslq 0x130(%rsp), %rdx
cmpq %rdx, %rcx
jge 0xb8ac
movl %ecx, (%rax,%rcx,4)
incq %rcx
jmp 0xb897
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
leaq 0x60(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x48(%rsp), %r9
xorl %edx, %edx
xorl %ecx, %ecx
movl %eax, %r8d
callq 0xab56
leaq 0x68(%rsp), %rbx
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0x35f2
leaq 0x168(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
callq 0x82b2
leaq 0x168(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3d74
movq %r14, %rdi
callq 0x3bfe
leaq 0xb0(%rsp), %rdi
callq 0x3bfe
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x35f2
movq 0x2467b(%rip), %rsi     # 0x2ffc8
leaq 0x80(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0xcc56
leaq 0x98(%rsp), %rdi
callq 0x3bfe
movq 0x2467a(%rip), %rdi     # 0x2fff0
leaq 0x150e0(%rip), %rsi     # 0x20a5d
callq 0x2210
movl 0x60(%rsp), %esi
movq %rax, %rdi
callq 0x2330
movq %rax, %rdi
callq 0x20e0
movq 0x24653(%rip), %rdi     # 0x2fff0
leaq 0x14857(%rip), %rsi     # 0x201fb
callq 0x2210
movq 0x70(%rsp), %rsi
subq 0x68(%rsp), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x2160
movq %rax, %rdi
callq 0x20e0
movq 0x24622(%rip), %rdi     # 0x2fff0
leaq 0x14b20(%rip), %rsi     # 0x204f5
callq 0x2210
movq %rax, %r14
leaq 0x180(%rsp), %rdi
callq 0x1e706
movq %r14, %rdi
callq 0x2300
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x3bfe
leaq 0x48(%rsp), %rdi
callq 0x38e4
leaq 0x8(%rsp), %rdi
callq 0x376e
leaq 0xe0(%rsp), %rdi
callq 0x36d2
leaq 0x138(%rsp), %rdi
callq 0x3b46
leaq 0x30(%rsp), %rdi
callq 0x376e
leaq 0x80(%rsp), %rdi
callq 0x3a66
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x98(%rsp), %rdi
jmp 0xba71
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x3bfe
jmp 0xbaa6
jmp 0xbaa3
movq %rax, %r14
jmp 0xbaae
jmp 0xbabc
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0x376e
jmp 0xbabf
jmp 0xbabc
movq %rax, %r14
jmp 0xbac9
jmp 0xbad8
movq %rax, %r14
jmp 0xbaf2
jmp 0xbaa3
movq %rax, %r14
movq %rbx, %rdi
callq 0x3bfe
leaq 0x48(%rsp), %rdi
callq 0x38e4
jmp 0xbabf
jmp 0xbabc
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x376e
leaq 0xe0(%rsp), %rdi
callq 0x36d2
jmp 0xbadb
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0x3b46
leaq 0x30(%rsp), %rdi
callq 0x376e
leaq 0x80(%rsp), %rdi
callq 0x3a66
movq %r14, %rdi
callq 0x2340