#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 */
int /*<<< orphan*/ printf(char *, float, float);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int entn, count;
  float cordinates[2], bid[entn][2], wei, deltx, delty;
  scanf("%d", &entn);
  scanf("%f %f", &cordinates[0], &cordinates[1]);
  for (count = 0; count < entn; count++) {
    scanf("%f %f", &bid[count][0], &bid[count][1]);
  }
  wei = 1;
  for (count = 0; count < entn; count++) {
    deltx = bid[count][0] - cordinates[0];
    delty = bid[count][1] - cordinates[1];
    deltx = deltx + deltx / wei;
    delty = delty + delty / wei;
    printf("%0.2f %0.2f\n", deltx, delty);
    cordinates[0] = cordinates[0] + deltx;
    cordinates[1] = cordinates[1] + delty;
    wei = wei * 2;
  }
  printf("%0.2f %0.2f\n", cordinates[0], cordinates[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
lea    0xeab(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x14(%rbp),%rsi
lea    -0x14(%rbp),%rdx
add    $0x4,%rdx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11d2 <main+0xb2>
mov    -0x40(%rbp),%rdx
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %rdx,%rsi
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
add    $0x4,%rdx
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1189 <main+0x69>
movss  0xe26(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a1 <main+0x181>
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,8),%xmm0
subss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
movslq -0xc(%rbp),%rcx
movss  0x4(%rax,%rcx,8),%xmm0
subss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm0
movss  -0x30(%rbp),%xmm1
divss  -0x2c(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x34(%rbp),%xmm0
movss  -0x34(%rbp),%xmm1
divss  -0x2c(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm0
movss  -0x34(%rbp),%xmm1
lea    0xdb3(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xd7b(%rip),%xmm0
mulss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11e6 <main+0xc6>
movss  -0x14(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
lea    0xd5f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsp,%r15
lea    0xecf(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xc(%rsp),%rdx
lea    0xeba(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1225 <main+0x105>
mov    %rsp,%rbx
lea    0xe99(%rip),%r14
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x4(%rbx),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    $0x1,%r12
movslq 0x4(%rsp),%rax
add    $0x8,%rbx
cmp    %rax,%r12
jl     1180 <main+0x60>
test   %eax,%eax
jle    1225 <main+0x105>
movss  0xe51(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
xor    %ebx,%ebx
lea    0xe4f(%rip),%r14
xchg   %ax,%ax
movaps %xmm2,0x20(%rsp)
movsd  (%rsp),%xmm1
subps  %xmm0,%xmm1
shufps $0x0,%xmm2,%xmm2
movaps %xmm1,%xmm0
divps  %xmm2,%xmm0
addps  %xmm1,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
mov    %r14,%rdi
call   1030 <printf@plt>
movaps 0x20(%rsp),%xmm2
movsd  0x8(%rsp),%xmm0
addps  0x10(%rsp),%xmm0
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
movss  %xmm0,0x8(%rsp)
movss  %xmm1,0xc(%rsp)
addss  %xmm2,%xmm2
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
cmp    %rax,%rbx
jl     11c0 <main+0xa0>
jmp    122b <main+0x10b>
movsd  0x8(%rsp),%xmm0
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
lea    0xdd4(%rip),%rdi
call   1030 <printf@plt>
mov    %r15,%rsp
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [13 x i8] c"%0.2f %0.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [2 x float]
%5 = alloca i8*
%6 = alloca i64
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
%10 = load i32, i32* %2
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %5
%13 = alloca [2 x float], i64 %11
store i64 %11, i64* %6
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%15 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
%16 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %15, float* %16)
store i32 0, i32* %3
br label %18
18: ; preds = %32, %0
%19 = load i32, i32* %3
%20 = load i32, i32* %2
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %35
22: ; preds = %18
%23 = load i32, i32* %3
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [2 x float], [2 x float]* %13, i64 %24
%26 = getelementptr inbounds [2 x float], [2 x float]* %25, i64 0, i64 0
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [2 x float], [2 x float]* %13, i64 %28
%30 = getelementptr inbounds [2 x float], [2 x float]* %29, i64 0, i64 1
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %26, float* %30)
br label %32
32: ; preds = %22
%33 = load i32, i32* %3
%34 = add nsw i32 %33, 1
store i32 %34, i32* %3
br label %18
35: ; preds = %18
store float 1.000000e+00, float* %7
store i32 0, i32* %3
br label %36
36: ; preds = %82, %35
%37 = load i32, i32* %3
%38 = load i32, i32* %2
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %85
40: ; preds = %36
%41 = load i32, i32* %3
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [2 x float], [2 x float]* %13, i64 %42
%44 = getelementptr inbounds [2 x float], [2 x float]* %43, i64 0, i64 0
%45 = load float, float* %44
%46 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
%47 = load float, float* %46
%48 = fsub float %45, %47
store float %48, float* %8
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [2 x float], [2 x float]* %13, i64 %50
%52 = getelementptr inbounds [2 x float], [2 x float]* %51, i64 0, i64 1
%53 = load float, float* %52
%54 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
%55 = load float, float* %54
%56 = fsub float %53, %55
store float %56, float* %9
%57 = load float, float* %8
%58 = load float, float* %8
%59 = load float, float* %7
%60 = fdiv float %58, %59
%61 = fadd float %57, %60
store float %61, float* %8
%62 = load float, float* %9
%63 = load float, float* %9
%64 = load float, float* %7
%65 = fdiv float %63, %64
%66 = fadd float %62, %65
store float %66, float* %9
%67 = load float, float* %8
%68 = load float, float* %9
%69 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %67, float %68)
%70 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
%71 = load float, float* %70
%72 = load float, float* %8
%73 = fadd float %71, %72
%74 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
store float %73, float* %74
%75 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
%76 = load float, float* %75
%77 = load float, float* %9
%78 = fadd float %76, %77
%79 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
store float %78, float* %79
%80 = load float, float* %7
%81 = fmul float %80, 2.000000e+00
store float %81, float* %7
br label %82
82: ; preds = %40
%83 = load i32, i32* %3
%84 = add nsw i32 %83, 1
store i32 %84, i32* %3
br label %36
85: ; preds = %36
%86 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 0
%87 = load float, float* %86
%88 = getelementptr inbounds [2 x float], [2 x float]* %4, i64 0, i64 1
%89 = load float, float* %88
%90 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %87, float %89)
store i32 0, i32* %1
%91 = load i8*, i8** %5
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%f %f\00"
@.str.2 = [13 x i8] c"%0.2f %0.2f\0A\00"
define i32 @main() {
%1 = alloca [0 x [2 x float]]
%2 = alloca i32
%3 = alloca <2 x float>
%4 = bitcast i32* %2 to i8*
%5 = bitcast <2 x float>* %3 to i8*
%6 = tail call i8* @llvm.stacksave()
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%8 = getelementptr inbounds <2 x float>, <2 x float>* %3, i64 0, i64 0
%9 = getelementptr inbounds <2 x float>, <2 x float>* %3, i64 0, i64 1
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %8, float* %9)
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 0
br i1 %12, label %20, label %15
13: ; preds = %20
%14 = icmp sgt i32 %26, 0
br i1 %14, label %17, label %15
15: ; preds = %0, %13
%16 = load <2 x float>, <2 x float>* %3
br label %51
17: ; preds = %13
%18 = load <2 x float>, <2 x float>* %3
%19 = bitcast [0 x [2 x float]]* %1 to <2 x float>*
br label %29
20: ; preds = %0, %20
%21 = phi i64 [ %25, %20 ], [ 0, %0 ]
%22 = getelementptr inbounds [0 x [2 x float]], [0 x [2 x float]]* %1, i64 0, i64 %21, i64 0
%23 = getelementptr inbounds [0 x [2 x float]], [0 x [2 x float]]* %1, i64 0, i64 %21, i64 1
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float* %22, float* %23)
%25 = add nuw nsw i64 %21, 1
%26 = load i32, i32* %2
%27 = sext i32 %26 to i64
%28 = icmp slt i64 %25, %27
br i1 %28, label %20, label %13
29: ; preds = %17, %29
%30 = phi i64 [ 0, %17 ], [ %47, %29 ]
%31 = phi float [ 1.000000e+00, %17 ], [ %46, %29 ]
%32 = phi <2 x float> [ %18, %17 ], [ %43, %29 ]
%33 = load <2 x float>, <2 x float>* %19
%34 = fsub <2 x float> %33, %32
%35 = insertelement <2 x float> poison, float %31, i64 0
%36 = shufflevector <2 x float> %35, <2 x float> poison, <2 x i32> zeroinitializer
%37 = fdiv <2 x float> %34, %36
%38 = fadd <2 x float> %34, %37
%39 = extractelement <2 x float> %38, i64 0
%40 = extractelement <2 x float> %38, i64 1
%41 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %39, float %40)
%42 = load <2 x float>, <2 x float>* %3
%43 = fadd <2 x float> %38, %42
%44 = extractelement <2 x float> %43, i64 0
store float %44, float* %8
%45 = extractelement <2 x float> %43, i64 1
store float %45, float* %9
%46 = fmul float %31, 2.000000e+00
%47 = add nuw nsw i64 %30, 1
%48 = load i32, i32* %2
%49 = sext i32 %48 to i64
%50 = icmp slt i64 %47, %49
br i1 %50, label %29, label %51
51: ; preds = %29, %15
%52 = phi <2 x float> [ %16, %15 ], [ %43, %29 ]
%53 = extractelement <2 x float> %52, i64 0
%54 = extractelement <2 x float> %52, i64 1
%55 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), float %53, float %54)
ret i32 0
}