// File: /workspace/github_cpp_makefile_star2_O1/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 $0x1f8, %rsp            # imm = 0x1F8
leaq 0x1e0(%rsp), %rbx
movq %rbx, %rdi
callq 0x270c8
movq %rbx, %rdi
callq 0x270d4
xorps %xmm0, %xmm0
leaq 0x120(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq 0x27a31(%rip), %rdx     # 0x35fd8
leaq 0x108(%rsp), %rdi
callq 0x10562
leaq 0x1b8(%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 0x108(%rsp), %r15
movq 0x110(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpq %rax, %r15
je 0xe6a2
leaq 0x1b0(%rsp), %rbx
leaq 0x158(%rsp), %r14
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x2, %rax
testl %eax, %eax
jle 0xe690
movl $0x1, %r12d
xorl %ebp, %ebp
movq 0x8(%r15), %rax
subq (%r15), %rax
leaq 0x1(%rbp), %rcx
shrq $0x2, %rax
cltq
movq %rcx, 0xc8(%rsp)
cmpq %rax, %rcx
jge 0xe673
movq %r12, %r13
movq (%r15), %rax
movl (%rax,%rbp,4), %ecx
movl %ecx, 0x158(%rsp)
movl (%rax,%r13,4), %eax
movl %eax, 0x15c(%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 0xe63d
movq 0x8(%r15), %rax
subq (%r15), %rax
shrq $0x2, %rax
cltq
incq %r12
movq 0xc8(%rsp), %rbp
cmpq %rax, %rbp
jl 0xe61c
addq $0x18, %r15
cmpq 0xc0(%rsp), %r15
jne 0xe605
leaq 0x158(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x92a6
leaq 0x38(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x4164
movq 0x38(%rsp), %r12
movq 0x40(%rsp), %r13
cmpq %r13, %r12
je 0xe746
leaq 0x158(%rsp), %rbx
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe702
movl (%r14), %esi
movq %rbx, %rdi
callq 0xa32a
movl %eax, (%r14)
addq $0x4, %r14
jmp 0xe6e9
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe73d
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 0xe6e0
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x4164
leaq 0x140(%rsp), %rdi
callq 0x22bf4
leaq 0x140(%rsp), %rdi
callq 0x41fe
movslq 0x1a8(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0xa6ba
cmpl $0x0, 0x1a8(%rsp)
jle 0xe7b3
movq 0xa8(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
movslq 0x1a8(%rsp), %rdx
cmpq %rdx, %rcx
jl 0xe7a0
movq 0x40(%rsp), %rax
subq 0x38(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %rcx, 0xd0(%rsp)
xorl %eax, %eax
testq %rcx, %rcx
sets %al
fildll 0xd0(%rsp)
leaq 0x1bfdb(%rip), %rcx     # 0x2a7c8
fadds (%rcx,%rax,4)
fldz
fld %st(0)
fstpt 0x10(%rsp)
fstpt (%rsp)
fstpt 0x20(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x158(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xd665
leaq 0x80(%rsp), %rbx
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0x402a
leaq 0x50(%rsp), %rdi
leaq 0x158(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x9f86
movq 0x80(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
movups 0x58(%rsp), %xmm0
movups %xmm0, 0x88(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
testq %rdi, %rdi
je 0xe893
subq %rdi, %rsi
callq 0x2210
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xe8aa
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xe8c7
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0xd8(%rsp), %rdi
movq %rbx, %rsi
callq 0x402a
movq 0x276ea(%rip), %rsi     # 0x35fc8
leaq 0x120(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x108a6
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xe910
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x276d9(%rip), %rdi     # 0x35ff0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x8, 0x8(%rdi,%rax)
leaq 0x1c13c(%rip), %rsi     # 0x2aa6a
movl $0x1b, %edx
callq 0x2250
fldt 0x70(%rsp)
fstpt (%rsp)
movq 0x276aa(%rip), %rdi     # 0x35ff0
callq 0x20e0
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 0x27674(%rip), %rdi     # 0x35ff0
leaq 0x1b894(%rip), %rsi     # 0x2a217
movl $0xd, %edx
callq 0x2250
movq 0x88(%rsp), %rsi
subq 0x80(%rsp), %rsi
sarq $0x3, %rsi
movq 0x27648(%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 0x27612(%rip), %rdi     # 0x35ff0
leaq 0x1bb00(%rip), %rsi     # 0x2a4e5
movl $0x5, %edx
callq 0x2250
leaq 0x1e0(%rsp), %rdi
callq 0x2711a
movq 0x275ed(%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 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xea4f
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xea6c
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x38(%rsp), %rdi
callq 0x41fe
leaq 0x190(%rsp), %rdi
callq 0x41fe
leaq 0x170(%rsp), %rbx
movq %rbx, %rdi
callq 0x43b8
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xeaac
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x1b0(%rsp), %rdi
callq 0x44da
leaq 0x108(%rsp), %rdi
callq 0x41fe
leaq 0x120(%rsp), %rdi
callq 0x4406
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xeb4f
movq 0xe8(%rsp), %rsi
jmp 0xeb17
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xeb4f
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xeb4f
jmp 0xeb4c
movq %rax, %rbx
jmp 0xeb6c
jmp 0xeb8d
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x41fe
jmp 0xeb90
jmp 0xeb8d
movq %rax, %rbx
jmp 0xeb9a
jmp 0xeba9
movq %rax, %rbx
jmp 0xebc6
jmp 0xeb4c
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xeb6c
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xeb90
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xeb90
jmp 0xeb8d
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x41fe
leaq 0x158(%rsp), %rdi
callq 0x412c
jmp 0xebac
movq %rax, %rbx
leaq 0x1b0(%rsp), %rdi
callq 0x44da
leaq 0x108(%rsp), %rdi
callq 0x41fe
leaq 0x120(%rsp), %rdi
callq 0x4406
movq %rbx, %rdi
callq 0x2310