Intersection of Two Lines Given equation of two lines in the format Ax+By=C, determine their intersection point. If they are parallel print 'parallel' without quotes. For input/output format refer sample input/output.

Input
1x+1y=1
1x-1y=1

Output
(1.00,0.00)

Input
0x+1y=0
1x+0y=0

Output
(0.00,0.00)



-1000000 &lt;= A,B,C &lt;= 1000000.
Note their intersection point may not be integer. Print upto two decimal places.
Shortest solution wins.
Ruby - 119 chars

a,b,c,d,e,f=(gets+gets).scan(/-?\d+/).map &amp;:to_f
puts (t=a*e-b*d)==0?'parallel':"(%.2f,%.2f)"%[(e*c-b*f)/t,(a*f-c*d)/t]