import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double num1, num2, num3, num4, num5, num6, num7, num8;
double a, b, c, d, e, f, g, h;
num1 = scan.nextDouble();
num2 = scan.nextDouble();
num3 = scan.nextDouble();
num4 = scan.nextDouble();
num5 = scan.nextDouble();
num6 = scan.nextDouble();
num7 = scan.nextDouble();
num8 = scan.nextDouble();
a = num2 - num4;
b = num3 - num1;
c = num6 - num8;
d = num7 - num5;
e = (num2 - num4)*num1 - (num1 - num3)*num2;
f = (num6 - num8)*num5 - (num5 - num7)*num6;
if ((a*d - b*c) == 0)
{
System.out.println("parallel");
}
else
{
g = ((e * d - b * f) / (a * d - b * c));
h = ((a*f - c*e) / (a*d - b*c));
g= Math.floor(10*g);
h= Math.floor(10*h);
System.out.printf("%.1f %.1f", g/10, h/10 );
}
}
}
답도 다 제대로 나오고 출력형식도 맞췄는데 왜 계속 틀렸다고 뜰까요ㅠㅠ 몇시간째 답이 안나오네요ㅠㅠ