// File: /workspace/github_cpp_makefile_star2_O3/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 0x268d8
movq %rbx, %rdi
callq 0x268e4
xorps %xmm0, %xmm0
leaq 0x120(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
movq 0x269e9(%rip), %rdx     # 0x34fd8
leaq 0x108(%rsp), %rdi
callq 0x1090c
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 0xe6eb
leaq 0x1b0(%rsp), %rbx
leaq 0x158(%rsp), %r14
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0xe6d9
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 0xe6d1
movq %rsi, 0xc8(%rsp)
movq %r12, %r13
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 0x9126
incq %r13
movq (%r15), %rax
movq 0x8(%r15), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
cmpl %edx, %r13d
jl 0xe68d
movslq %edx, %rdx
movq 0xc8(%rsp), %rsi
incq %r12
cmpq %rdx, %rsi
jl 0xe66a
addq $0x18, %r15
cmpq 0xc0(%rsp), %r15
jne 0xe64d
leaq 0x158(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x958a
leaq 0x38(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x4110
movq 0x38(%rsp), %r12
movq 0x40(%rsp), %r13
cmpq %r13, %r12
je 0xe792
leaq 0x158(%rsp), %rbx
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe757
movl (%r14), %esi
movq %rbx, %rdi
callq 0xa662
movl %eax, (%r14)
addq $0x4, %r14
cmpq %r15, %r14
jne 0xe737
movq (%r12), %r14
movq 0x8(%r12), %r15
cmpq %r15, %r14
je 0xe789
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 0xe729
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x4110
leaq 0x140(%rsp), %rdi
callq 0x22aec
leaq 0x140(%rsp), %rdi
callq 0x41aa
movslq 0x1a8(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0xaa18
cmpl $0x0, 0x1a8(%rsp)
jle 0xe7ff
movq 0xa8(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax,%rcx,4)
incq %rcx
movslq 0x1a8(%rsp), %rdx
cmpq %rdx, %rcx
jl 0xe7ec
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 0x1af9f(%rip), %rcx     # 0x297d8
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 0xd6ce
leaq 0x80(%rsp), %rbx
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0x3f7c
leaq 0x50(%rsp), %rdi
leaq 0x158(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0xa2d6
movq 0x80(%rsp), %rdi
movq 0x90(%rsp), %rsi
movaps 0x50(%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
testq %rdi, %rdi
je 0xe8f6
subq %rdi, %rsi
callq 0x2210
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xe8f6
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xe913
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0xd8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3f7c
movq 0x2669e(%rip), %rsi     # 0x34fc8
leaq 0x120(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x10c78
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0xe95c
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0x2668d(%rip), %rdi     # 0x34ff0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x8, 0x8(%rdi,%rax)
leaq 0x1b100(%rip), %rsi     # 0x29a7a
movl $0x1b, %edx
callq 0x2250
fldt 0x70(%rsp)
fstpt (%rsp)
movq 0x2665e(%rip), %rdi     # 0x34ff0
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 0x26628(%rip), %rdi     # 0x34ff0
leaq 0x1a82c(%rip), %rsi     # 0x291fb
movl $0xd, %edx
callq 0x2250
movq 0x88(%rsp), %rsi
subq 0x80(%rsp), %rsi
sarq $0x3, %rsi
movq 0x265fc(%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 0x265c6(%rip), %rdi     # 0x34ff0
leaq 0x1aac4(%rip), %rsi     # 0x294f5
movl $0x5, %edx
callq 0x2250
leaq 0x1e0(%rsp), %rdi
callq 0x2692a
movq 0x265a1(%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 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xea9b
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xeab8
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x38(%rsp), %rdi
callq 0x41aa
leaq 0x190(%rsp), %rdi
callq 0x41aa
leaq 0x170(%rsp), %rbx
movq %rbx, %rdi
callq 0x436a
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xeaf8
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
leaq 0x1b0(%rsp), %rdi
callq 0x4494
leaq 0x108(%rsp), %rdi
callq 0x41aa
leaq 0x120(%rsp), %rdi
callq 0x43be
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 0xeb9b
movq 0xe8(%rsp), %rsi
jmp 0xeb63
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xeb9b
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xeb9b
jmp 0xeb98
movq %rax, %rbx
jmp 0xebb8
jmp 0xebd9
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x41aa
jmp 0xebdc
jmp 0xebd9
movq %rax, %rbx
jmp 0xebe6
jmp 0xebf5
movq %rax, %rbx
jmp 0xec12
jmp 0xeb98
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xebb8
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xebdc
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2210
jmp 0xebdc
jmp 0xebd9
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x41aa
leaq 0x158(%rsp), %rdi
callq 0x40d8
jmp 0xebf8
movq %rax, %rbx
leaq 0x1b0(%rsp), %rdi
callq 0x4494
leaq 0x108(%rsp), %rdi
callq 0x41aa
leaq 0x120(%rsp), %rdi
callq 0x43be
movq %rbx, %rdi
callq 0x2310