import java.util.Scanner; class Test { public static void main(String[] args) { { Scanner inp=new Scanner(System.in); double a1,b1,c1,a2,b2,c2,d,dx,dy,x,y; System.out.println("Eisigage arithmo a1:"); a1=inp.nextFloat(); System.out.println("Eisigage arithmo b1:"); b1=inp.nextFloat(); System.out.println("Eisigage arithmo c1:"); c1=inp.nextFloat(); System.out.println("Eisigage arithmo a2:"); a2=inp.nextFloat(); System.out.println("Eisigage arithmo b2:"); b2=inp.nextFloat(); System.out.println("Eisigage arithmo c2:"); c2=inp.nextFloat(); d=a1*b2-a2*b1; dx=c1*b2-c2*b1; dy=c1*c2-a2*c1; if (d==0) { System.out.println("adunato/aroristi"); } else { x=dx/d; y=dy/d; } System.out.println(x); System.out.println(y); }}}