// File: /workspace/github_cpp_makefile_star2_O3/agorenst[P]trie/prefixtree.cpp
// Function: main
int main(int argc, char* argv[]) {
    string line;
    prefix_tree<int> t;
    while (cin) {
        getline(cin, line);
        istringstream int_parser(line);
        int x;
        vector<int> int_stream;
        while (!int_parser.eof()) {
            int_parser >> x;
            int_stream.push_back(x);
        }
        t.insert(int_stream.rbegin(), int_stream.rend());
    }
    cout << 
"\\documentclass{standalone}\
\\usepackage{tikz}\
\\begin{document}\
\\usetikzlibrary{graphdrawing,graphdrawing.trees}\
\\begin{tikzpicture}\\begin{scope}[tree layout]";
    t.tikz_print(cout);
    cout <<
"\\end{scope}\
\\end{tikzpicture}\
\\end{document}";
    cout << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0x40, %edi
callq 0x2110
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x29c3(%rip), %rcx      # 0x4d38
movq %rcx, (%rax)
leaq 0x10(%rax), %rsi
movq %rax, %rdx
addq $0x18, %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movq %rdx, 0x30(%rax)
movq %rcx, 0x38(%rax)
movq %rax, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq %rsi, -0x70(%rbp)
movq %rsi, -0x68(%rbp)
movq 0x2c2d(%rip), %r12      # 0x4fe0
movq (%r12), %rax
movq -0x18(%rax), %rdi
testb $0x5, 0x20(%r12,%rdi)
jne 0x24d8
addq %r12, %rdi
leaq -0x220(%rbp), %r14
leaq -0x2c(%rbp), %rbx
leaq -0x50(%rbp), %r13
movl $0xa, %esi
callq 0x2100
leaq -0xa0(%rbp), %r15
movsbl %al, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x21d0
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x21a0
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x200(%rbp,%rax)
jne 0x247a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20a0
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x2450
movl -0x2c(%rbp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, -0x48(%rbp)
jmp 0x245b
movq %r13, %rdi
movq %rbx, %rdx
callq 0x27de
movq -0x220(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x200(%rbp,%rax)
je 0x242c
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
jmp 0x247e
xorl %eax, %eax
xorl %ecx, %ecx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x2916
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x24a5
callq 0x20f0
movq %r14, %rdi
movq 0x2b11(%rip), %rsi      # 0x4fc0
callq 0x2150
leaq -0x1a8(%rbp), %rdi
callq 0x2060
movq (%r12), %rax
movq -0x18(%rax), %rax
leaq (%r12,%rax), %rdi
testb $0x5, 0x20(%r12,%rax)
je 0x23d9
movq 0x2af1(%rip), %rdi      # 0x4fd0
leaq 0xb3a(%rip), %rsi       # 0x3020
movl $0x98, %edx
callq 0x2130
movq 0x2ad9(%rip), %rsi      # 0x4fd0
leaq -0x68(%rbp), %rdi
callq 0x25fa
movq 0x2ac9(%rip), %rbx      # 0x4fd0
leaq 0xbab(%rip), %rsi       # 0x30b9
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x2130
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq 0x2a97(%rip), %rdi      # 0x4fd0
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2554
callq 0x2666
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x256c
callq 0x20f0
xorl %eax, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x25d9
movq %rax, %rbx
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
testq %rax, %rax
jne 0x25d0
jmp 0x25d9
jmp 0x25a0
jmp 0x259b
movq %rax, %rbx
jmp 0x25d0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x25b1
callq 0x20f0
movq 0x2a08(%rip), %rsi      # 0x4fc0
leaq -0x220(%rbp), %rdi
callq 0x2150
leaq -0x1a8(%rbp), %rdi
callq 0x2060
movq -0x58(%rbp), %rdi
callq 0x2666
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x25f1
callq 0x20f0
movq %rbx, %rdi
callq 0x21c0
nop