// File: /workspace/github_cpp_makefile_star2_O2/muk343[P]pmml/pmml_score.cpp
// Function: main
int main()
{

	GraphGenerator graphGenerator;
	Node* rootNode = graphGenerator.getRootNode("pmmlModel.xml");	

	string line;
	while (getline(cin, line)) {
	  	std::istringstream iss(line);
	  	vector<double> input_vec;
	  	std::string token;
    	while(std::getline(iss, token, '\t')) {
        	input_vec.push_back(stod(token));
        }

        Score s(input_vec);
		
		vector<double> res = s.generateProb(rootNode);
		int size = res.size();
		cout.precision(12);
		for(int i=0; i<size-1; i++) {
			cout << res[i] << ",";
		}
		cout << res[size-1] << "\n";
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
leaq 0x1fac(%rip), %rsi      # 0xc070
leaq 0x7(%rsp), %rdi
callq 0x90b0
movq %rax, 0x38(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x60(%rsp), %r14
leaq 0xe8(%rsp), %r12
leaq 0x40(%rsp), %r13
pushq $0x9
popq %rbp
leaq 0x98(%rsp), %rbx
movq 0x7eb8(%rip), %r15      # 0x11fc0
movq 0x7ed1(%rip), %rdi      # 0x11fe0
movq %r14, %rsi
callq 0x40a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xa296
movq %r12, %rdi
movq %r14, %rsi
pushq $0x8
popq %rdx
callq 0x43d0
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
andq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x4400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xa197
movq %r13, %rdi
xorl %esi, %esi
callq 0x90f1
movsd %xmm0, 0x98(%rsp)
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0xae74
jmp 0xa15a
leaq 0x80(%rsp), %r14
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xa32a
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa378
movq %r14, %rdi
callq 0x93c6
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq 0x38(%rsp), %rdx
callq 0xa3e4
movq 0x10(%rsp), %rbp
subq 0x8(%rsp), %rbp
shrq $0x3, %rbp
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0xc, 0x8(%r15,%rax)
decl %ebp
testl %ebp, %ebp
movl $0x0, %r14d
cmovgl %ebp, %r14d
shlq $0x3, %r14
xorl %r12d, %r12d
cmpq %r12, %r14
je 0xa231
movq 0x8(%rsp), %rax
movsd (%rax,%r12), %xmm0
movq %r15, %rdi
callq 0x43a0
movq %rax, %rdi
leaq 0x1e58(%rip), %rsi      # 0xc07e
callq 0x4200
addq $0x8, %r12
jmp 0xa204
movslq %ebp, %rax
movq 0x8(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movq %r15, %rdi
callq 0x43a0
movq %rax, %rdi
leaq 0x1b70(%rip), %rsi      # 0xbdc0
callq 0x4200
leaq 0x8(%rsp), %rdi
callq 0x93c6
movq %rbx, %rdi
callq 0xa486
movq %r13, %rdi
callq 0x4120
leaq 0x20(%rsp), %rdi
callq 0x93c6
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
callq 0x4130
leaq 0x60(%rsp), %r14
pushq $0x9
popq %rbp
jmp 0xa108
leaq 0x60(%rsp), %rdi
callq 0x4120
xorl %eax, %eax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xa2e5
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x93c6
jmp 0xa2f7
jmp 0xa2f4
jmp 0xa2cf
movq %rax, %rbx
jmp 0xa318
jmp 0xa2d8
jmp 0xa2f4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x93c6
leaq 0x98(%rsp), %rdi
callq 0xa486
jmp 0xa2f7
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4120
leaq 0x20(%rsp), %rdi
callq 0x93c6
leaq 0xe8(%rsp), %rdi
callq 0x4130
leaq 0x60(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x43e0