// File: /workspace/github_cpp_makefile_star2_O3/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 0x268d8
movq %rbx, %rdi
callq 0x268e4
xorps %xmm0, %xmm0
leaq 0xd0(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq 0x26fe5(%rip), %rdx     # 0x34fd8
leaq 0xb8(%rsp), %rdi
callq 0x1090c
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 0xe0e9
leaq 0x160(%rsp), %rbx
leaq 0x108(%rsp), %r14
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0xe0da
movl $0x1, %r12d
xorl %esi, %esi
movq %rsi, %rbp
incq %rsi
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
movslq %edx, %rdx
cmpq %rdx, %rsi
jge 0xe0d2
movq %rsi, 0x80(%rsp)
movq %r12, %r13
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 0x9126
incq %r13
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
cmpl %edx, %r13d
jl 0xe08e
movslq %edx, %rdx
movq 0x80(%rsp), %rsi
incq %r12
cmpq %rdx, %rsi
jl 0xe06b
addq $0x18, %r15
cmpq 0x78(%rsp), %r15
jne 0xe04e
leaq 0x108(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x958a
leaq 0x28(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x4110
movq 0x28(%rsp), %r12
movq 0x30(%rsp), %r13
cmpq %r13, %r12
je 0xe190
leaq 0x108(%rsp), %rbx
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe155
movl (%r14), %esi
movq %rbx, %rdi
callq 0xa662
movl %eax, (%r14)
addq $0x4, %r14
cmpq %r15, %r14
jne 0xe135
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe187
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 0xaf7f
movq %r14, %rdi
movq %r15, %rsi
callq 0xb062
addq $0x18, %r12
cmpq %r13, %r12
jne 0xe127
leaq 0xf0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4110
leaq 0xf0(%rsp), %rdi
callq 0x22aec
leaq 0xf0(%rsp), %rdi
callq 0x41aa
movslq 0x158(%rsp), %rsi
leaq 0x60(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xaa18
cmpl $0x0, 0x158(%rsp)
jle 0xe1f7
movq 0x60(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
movslq 0x158(%rsp), %rdx
cmpq %rdx, %rcx
jl 0xe1e4
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 0xcef6
leaq 0x10(%rsp), %rbx
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x3f7c
leaq 0x40(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0xa2d6
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
testq %rdi, %rdi
je 0xe2a9
subq %rdi, %rsi
callq 0x2210
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xe2a9
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xe2c6
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x3f7c
movq 0x26ceb(%rip), %rsi     # 0x34fc8
leaq 0xd0(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x10c78
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0xe30f
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x26cda(%rip), %rdi     # 0x34ff0
leaq 0x1b740(%rip), %rsi     # 0x29a5d
movl $0x1c, %edx
callq 0x2250
movl 0x8(%rsp), %esi
movq 0x26cbe(%rip), %rdi     # 0x34ff0
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 0x26c88(%rip), %rdi     # 0x34ff0
leaq 0x1ae8c(%rip), %rsi     # 0x291fb
movl $0xd, %edx
callq 0x2250
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movq 0x26c62(%rip), %rdi     # 0x34ff0
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 0x26c2c(%rip), %rdi     # 0x34ff0
leaq 0x1b12a(%rip), %rsi     # 0x294f5
movl $0x5, %edx
callq 0x2250
leaq 0x190(%rsp), %rdi
callq 0x2692a
movq 0x26c07(%rip), %rdi     # 0x34ff0
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 0xe42f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xe446
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x28(%rsp), %rdi
callq 0x41aa
leaq 0x140(%rsp), %rdi
callq 0x41aa
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
callq 0x436a
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xe486
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x160(%rsp), %rdi
callq 0x4494
leaq 0xb8(%rsp), %rdi
callq 0x41aa
leaq 0xd0(%rsp), %rdi
callq 0x43be
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 0xe529
movq 0x98(%rsp), %rsi
jmp 0xe4f1
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xe529
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xe529
jmp 0xe526
movq %rax, %rbx
jmp 0xe540
jmp 0xe55b
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x41aa
jmp 0xe55e
jmp 0xe55b
movq %rax, %rbx
jmp 0xe568
jmp 0xe577
movq %rax, %rbx
jmp 0xe594
jmp 0xe526
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe540
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xe55e
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xe55e
jmp 0xe55b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x41aa
leaq 0x108(%rsp), %rdi
callq 0x40d8
jmp 0xe57a
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x4494
leaq 0xb8(%rsp), %rdi
callq 0x41aa
leaq 0xd0(%rsp), %rdi
callq 0x43be
movq %rbx, %rdi
callq 0x2310