// File: /workspace/github_cpp_makefile_star2_O1/ricbit[P]dlx/cover_shortcut.cc
// Function: main
int main() {
  string line;
  getline(cin, line);
  vector<string> items = parse_line(line);
  vector<vector<string>> options;
  while (getline(cin, line)) {
    vector<string> option = parse_line(line);
    if (!option.empty()) {
      options.push_back(option);
    }
  }
  ExactCover ec(items, options);
  //ec.print();
  //ec.write_dot();
  cout << "Number of solutions: " << ec.run() << "\n";
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq 0x5b08(%rip), %rdi      # 0x7fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %edx
movq 0x5aed(%rip), %rbx      # 0x7fe0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x21e0
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x23ac
vxorps %xmm0, %xmm0, %xmm0
leaq 0x20(%rsp), %r14
vmovaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq %rsp, %r15
leaq 0x58(%rsp), %r12
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x20f0
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2585
movq %r12, %rdi
movq %r15, %rsi
callq 0x23ac
movq 0x58(%rsp), %rax
cmpq 0x60(%rsp), %rax
je 0x257b
movq %r14, %rdi
movq %r12, %rsi
callq 0x27de
movq %r12, %rdi
callq 0x2782
jmp 0x2529
leaq 0x58(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x280a
movq 0x5a30(%rip), %rdi      # 0x7fd0
leaq 0x2be9(%rip), %rsi      # 0x5190
movl $0x15, %edx
callq 0x2130
leaq 0x58(%rsp), %rdi
movq $0x0, 0xb0(%rdi)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0xa8(%rdi)
xorl %esi, %esi
callq 0x39d8
movq 0x108(%rsp), %rsi
movq 0x59e6(%rip), %rdi      # 0x7fd0
callq 0x20e0
leaq 0x2bb0(%rip), %rsi      # 0x51a6
movl $0x1, %edx
movq %rax, %rdi
callq 0x2130
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x2620
movq 0xe8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x263d
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x265a
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x2677
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2691
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x26a8
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x2110
leaq 0x20(%rsp), %rdi
callq 0x29ba
leaq 0x40(%rsp), %rdi
callq 0x2782
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x26d2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
xorl %eax, %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x270e
jmp 0x26e9
movq %rax, %rbx
jmp 0x2725
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2930
jmp 0x2711
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2782
jmp 0x2711
jmp 0x270e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x29ba
leaq 0x40(%rsp), %rdi
callq 0x2782
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x273b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2110
movq %rbx, %rdi
callq 0x21c0
nop