#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ EOF;
int fabs(double);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, double *, double *, double *, double *);
int main() {
  double x1, y1, x2, y2;
  double ax1, ay1, ax2, ay2;
  double a, b;
  while (scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2) != EOF) {
    if (fabs(x1 - x2) < 1e-8 && fabs(y1 - y2) < 1e-8) {
      printf("Impossible.\n");
      continue;
    }
    a = (y1 - y2 + x2 - x1) / 2;
    b = (y1 - y2 - x2 + x1) / 2;
    ax1 = x2 - a;
    ay1 = y2 + b;
    ax2 = x2 + b;
    ay2 = y2 + a;
    printf("%.10lf %.10lf %.10lf %.10lf\n", ax1, ay1, ax2, ay2);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x28(%rbp),%r8
call   1050 <scanf@plt>
mov    0x2e86(%rip),%rcx
cmp    (%rcx),%rax
je     1275 <main+0x145>
movsd  -0x10(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe7a(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11c8 <main+0x98>
movsd  -0x18(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe55(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11c8 <main+0x98>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    113f <main+0xf>
movsd  -0x18(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xe24(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
subsd  -0x20(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  0xdff(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
lea    0xdc1(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xeb3(%rip),%rdi
lea    0x20(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x8(%rsp),%r8
call   1060 <scanf@plt>
mov    0x2e73(%rip),%r14
cmp    (%r14),%rax
jne    118b <main+0x4b>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe76(%rip),%r15
lea    0x20(%rsp),%r12
lea    0x18(%rsp),%r13
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rbp
jmp    122f <main+0xef>
nopl   0x0(%rax,%rax,1)
movsd  0x18(%rsp),%xmm2
movsd  0x8(%rsp),%xmm4
subsd  %xmm4,%xmm2
movsd  0x10(%rsp),%xmm0
movapd %xmm2,%xmm3
addsd  %xmm0,%xmm3
movsd  0x20(%rsp),%xmm1
subsd  %xmm1,%xmm3
movsd  0xe20(%rip),%xmm5
mulsd  %xmm5,%xmm3
subsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm5,%xmm2
movapd %xmm4,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm0,%xmm2
subsd  %xmm3,%xmm0
addsd  %xmm4,%xmm3
lea    0xe0a(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
call   1060 <scanf@plt>
cmp    (%r14),%rax
je     117a <main+0x3a>
movsd  0x20(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
call   1050 <fabs@plt>
test   %eax,%eax
jg     11b0 <main+0x70>
movsd  0x18(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
call   1050 <fabs@plt>
test   %eax,%eax
jg     11b0 <main+0x70>
lea    0xdca(%rip),%rdi
call   1030 <puts@plt>
jmp    1212 <main+0xd2>

LLVM IR (-O0):
@.str = [13 x i8] c"%lf%lf%lf%lf\00"
@EOF = global i64 0
@.str.1 = [13 x i8] c"Impossible.\0A\00"
@.str.2 = [29 x i8] c"%.10lf %.10lf %.10lf %.10lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i32 0, i32* %1
br label %12
12: ; preds = %32, %30, %0
%13 = call i64 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4, double* %5)
%14 = load i64, i64* @EOF
%15 = icmp ne i64 %13, %14
br i1 %15, label %16, label %66
16: ; preds = %12
%17 = load double, double* %2
%18 = load double, double* %4
%19 = fsub double %17, %18
%20 = call i32 @fabs(double %19)
%21 = sitofp i32 %20 to double
%22 = fcmp olt double %21, 1.000000e-08
br i1 %22, label %23, label %32
23: ; preds = %16
%24 = load double, double* %3
%25 = load double, double* %5
%26 = fsub double %24, %25
%27 = call i32 @fabs(double %26)
%28 = sitofp i32 %27 to double
%29 = fcmp olt double %28, 1.000000e-08
br i1 %29, label %30, label %32
30: ; preds = %23
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %12
32: ; preds = %23, %16
%33 = load double, double* %3
%34 = load double, double* %5
%35 = fsub double %33, %34
%36 = load double, double* %4
%37 = fadd double %35, %36
%38 = load double, double* %2
%39 = fsub double %37, %38
%40 = fdiv double %39, 2.000000e+00
store double %40, double* %10
%41 = load double, double* %3
%42 = load double, double* %5
%43 = fsub double %41, %42
%44 = load double, double* %4
%45 = fsub double %43, %44
%46 = load double, double* %2
%47 = fadd double %45, %46
%48 = fdiv double %47, 2.000000e+00
store double %48, double* %11
%49 = load double, double* %4
%50 = load double, double* %10
%51 = fsub double %49, %50
store double %51, double* %6
%52 = load double, double* %5
%53 = load double, double* %11
%54 = fadd double %52, %53
store double %54, double* %7
%55 = load double, double* %4
%56 = load double, double* %11
%57 = fadd double %55, %56
store double %57, double* %8
%58 = load double, double* %5
%59 = load double, double* %10
%60 = fadd double %58, %59
store double %60, double* %9
%61 = load double, double* %6
%62 = load double, double* %7
%63 = load double, double* %8
%64 = load double, double* %9
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %61, double %62, double %63, double %64)
br label %12
66: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%lf%lf%lf%lf\00"
@EOF = global i64 0
@.str.2 = [29 x i8] c"%.10lf %.10lf %.10lf %.10lf\0A\00"
@str = [12 x i8] c"Impossible.\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = bitcast double* %1 to i8*
%6 = bitcast double* %2 to i8*
%7 = bitcast double* %3 to i8*
%8 = bitcast double* %4 to i8*
%9 = call i64 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3, double* %4)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %47, label %12
12: ; preds = %0, %26
%13 = load double, double* %1
%14 = load double, double* %3
%15 = fsub double %13, %14
%16 = call i32 @fabs(double %15)
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %30
18: ; preds = %12
%19 = load double, double* %2
%20 = load double, double* %4
%21 = fsub double %19, %20
%22 = call i32 @fabs(double %21)
%23 = icmp slt i32 %22, 1
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
br label %26
26: ; preds = %24, %30
%27 = call i64 @scanf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3, double* %4)
%28 = load i64, i64* @EOF
%29 = icmp eq i64 %27, %28
br i1 %29, label %47, label %12
30: ; preds = %18, %12
%31 = load double, double* %2
%32 = load double, double* %4
%33 = fsub double %31, %32
%34 = load double, double* %3
%35 = fadd double %33, %34
%36 = load double, double* %1
%37 = fsub double %35, %36
%38 = fmul double %37, 5.000000e-01
%39 = fsub double %33, %34
%40 = fadd double %39, %36
%41 = fmul double %40, 5.000000e-01
%42 = fsub double %34, %38
%43 = fadd double %32, %41
%44 = fadd double %34, %41
%45 = fadd double %32, %38
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), double %42, double %43, double %44, double %45)
br label %26
47: ; preds = %26, %0
ret i32 0
}