// File: /workspace/github_cpp_makefile_star2_O2/Laakeri[P]Triangulator/src/hyper.cpp
// Function: Hyper::solveFrac()
void solveFrac() {
	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::solveFracGraph(pGraph, 0, 0, (ld)hes.size(), vert);
	sol.S = pGraph.mapBack(sol.S);
	io.printFill(cout, sol.S);
	cerr<<setprecision(8)<<"Fractional 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 $0x1d8, %rsp            # imm = 0x1D8
leaq 0x1c0(%rsp), %rbx
movq %rbx, %rdi
callq 0x1e6b4
movq %rbx, %rdi
callq 0x1e6c0
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movq 0x2448e(%rip), %rdx     # 0x2ffd8
leaq 0x60(%rsp), %rdi
callq 0xca1a
leaq 0x180(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq 0x60(%rsp), %r15
movq 0x68(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x178(%rsp), %rbx
leaq 0x120(%rsp), %r14
cmpq 0x48(%rsp), %r15
je 0xbc0d
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 0xbc07
leaq 0x1(%r13), %rdx
movq %rdx, 0x50(%rsp)
movq %r12, %rbp
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
cmpl %edx, %ebp
jge 0xbbfd
movl (%rax,%r13,4), %ecx
movl %ecx, 0x120(%rsp)
movl (%rax,%rbp,4), %eax
movl %eax, 0x124(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7448
incq %rbp
movq (%r15), %rax
movq 0x8(%r15), %rcx
jmp 0xbbc3
incq %r12
movq 0x50(%rsp), %r13
jmp 0xbba5
addq $0x18, %r15
jmp 0xbb90
leaq 0x120(%rsp), %rdi
leaq 0x178(%rsp), %rsi
callq 0x78ec
leaq 0x30(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x3714
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %r15
leaq 0x120(%rsp), %rbx
cmpq %r15, %r14
je 0xbc7c
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0xbc6a
movl (%r12), %esi
movq %rbx, %rdi
callq 0x856c
movl %eax, (%r12)
addq $0x4, %r12
jmp 0xbc4f
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x8dde
addq $0x18, %r14
jmp 0xbc43
leaq 0xd8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3714
leaq 0xd8(%rsp), %rdi
callq 0x1aee4
leaq 0xd8(%rsp), %rdi
callq 0x376e
movslq 0x170(%rsp), %rsi
leaq 0x78(%rsp), %rdi
leaq 0xf0(%rsp), %rdx
callq 0x8852
movq 0x78(%rsp), %rax
xorl %ecx, %ecx
movslq 0x170(%rsp), %rdx
cmpq %rdx, %rcx
jge 0xbcde
movl %ecx, (%rax,%rcx,4)
incq %rcx
jmp 0xbcc9
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movq %rax, 0x58(%rsp)
xorl %ecx, %ecx
testq %rax, %rax
sets %cl
fildll 0x58(%rsp)
leaq 0x14ad0(%rip), %rax     # 0x207d8
fadds (%rax,%rcx,4)
fldz
fld %st(0)
fstpt 0x10(%rsp)
fstpt (%rsp)
fstpt 0x20(%rsp)
leaq 0xf0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0xb089
leaq 0x100(%rsp), %rbx
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x35f2
leaq 0x1a8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x82b2
leaq 0x1a8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3d74
movq %r14, %rdi
callq 0x3bfe
leaq 0xc0(%rsp), %rdi
callq 0x3bfe
leaq 0xa8(%rsp), %rdi
movq %rbx, %rsi
callq 0x35f2
movq 0x24220(%rip), %rsi     # 0x2ffc8
leaq 0x90(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0xcc56
leaq 0xa8(%rsp), %rdi
callq 0x3bfe
movq 0x2421f(%rip), %rdi     # 0x2fff0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x8, 0x8(%rdi,%rax)
leaq 0x14c92(%rip), %rsi     # 0x20a7a
callq 0x2210
fldt 0xf0(%rsp)
fstpt (%rsp)
movq %rax, %rdi
callq 0x20f0
movq %rax, %rdi
callq 0x20e0
movq 0x241e2(%rip), %rdi     # 0x2fff0
leaq 0x143e6(%rip), %rsi     # 0x201fb
callq 0x2210
movq 0x108(%rsp), %rsi
subq 0x100(%rsp), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x2160
movq %rax, %rdi
callq 0x20e0
movq 0x241ab(%rip), %rdi     # 0x2fff0
leaq 0x146a9(%rip), %rsi     # 0x204f5
callq 0x2210
movq %rax, %r14
leaq 0x1c0(%rsp), %rdi
callq 0x1e706
movq %r14, %rdi
callq 0x2300
movq %rax, %rdi
callq 0x20e0
movq %rbx, %rdi
callq 0x3bfe
leaq 0x78(%rsp), %rdi
callq 0x38e4
leaq 0x30(%rsp), %rdi
callq 0x376e
leaq 0x120(%rsp), %rdi
callq 0x36d2
leaq 0x178(%rsp), %rdi
callq 0x3b46
leaq 0x60(%rsp), %rdi
callq 0x376e
leaq 0x90(%rsp), %rdi
callq 0x3a66
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
jmp 0xbee8
movq %rax, %r14
leaq 0xc0(%rsp), %rdi
callq 0x3bfe
jmp 0xbf1d
jmp 0xbf1a
movq %rax, %r14
jmp 0xbf25
jmp 0xbf33
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
callq 0x376e
jmp 0xbf36
jmp 0xbf33
movq %rax, %r14
jmp 0xbf40
jmp 0xbf4f
movq %rax, %r14
jmp 0xbf69
jmp 0xbf1a
movq %rax, %r14
movq %rbx, %rdi
callq 0x3bfe
leaq 0x78(%rsp), %rdi
callq 0x38e4
jmp 0xbf36
jmp 0xbf33
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x376e
leaq 0x120(%rsp), %rdi
callq 0x36d2
jmp 0xbf52
movq %rax, %r14
leaq 0x178(%rsp), %rdi
callq 0x3b46
leaq 0x60(%rsp), %rdi
callq 0x376e
leaq 0x90(%rsp), %rdi
callq 0x3a66
movq %r14, %rdi
callq 0x2340