var a1, a2, b1, b2, c1, c2, x, y :real;
label 57;
begin
read(a1);
read(b1);
read(c1);
read(a2);
read(b2);
read(c2);
if ((a1/b1) = 0) or ((a2/b2) = 0) then
begin
writeln ('not exists');
goto 57;
end;
if (a1/b1) = (a2/b2) then
begin
if (c1/b1) = (c2/b2) then
begin
writeln ('sovpadajut');
goto 57;
end;
writeln ('parallelnye');
goto 57;
end;
x:= (c2*b1 - c1*b2)/(a2*b1-a1*b2);
y:= (-a1/b1)*x + c1/b1;
writeln ('coordinates=', x , y);
57:end.

