#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() {
  float pacman_coordinate_x = 0, pacman_coordinate_y = 0, nacepin_x[100],
        nacepin_y[100], vector_x, vector_y;
  int counter, pacman_mas = 1, number_of_nacepin;
  scanf("%d", &number_of_nacepin);
  scanf("%f %f", &pacman_coordinate_x, &pacman_coordinate_y);
  for (counter = 1; counter <= number_of_nacepin; counter++) {
    scanf("%f %f", &nacepin_x[counter], &nacepin_y[counter]);
  }
  for (counter = 1; counter <= number_of_nacepin; counter++) {
    vector_x = (nacepin_x[counter] - pacman_coordinate_x) +
               (nacepin_x[counter] - pacman_coordinate_x) / pacman_mas;
    vector_y = (nacepin_y[counter] - pacman_coordinate_y) +
               (nacepin_y[counter] - pacman_coordinate_y) / pacman_mas;
    printf("%.1f %.1f \n", vector_x, vector_y);
    pacman_mas *= 2;
    pacman_coordinate_x += vector_x;
    pacman_coordinate_y += vector_y;
  }
  printf("%.1f %.1f\n", pacman_coordinate_x, pacman_coordinate_y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x350,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x1,-0x340(%rbp)
lea    0xead(%rip),%rdi
lea    -0x344(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe9b(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x1,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
cmp    -0x344(%rbp),%eax
jg     11df <main+0xbf>
movslq -0x33c(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x33c(%rbp),%rax
lea    -0x330(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1181 <main+0x61>
movl   $0x1,-0x33c(%rbp)
mov    -0x33c(%rbp),%eax
cmp    -0x344(%rbp),%eax
jg     12e2 <main+0x1c2>
movslq -0x33c(%rbp),%rax
movss  -0x1a0(%rbp,%rax,4),%xmm0
ff ff
subss  -0x8(%rbp),%xmm0
movslq -0x33c(%rbp),%rax
movss  -0x1a0(%rbp,%rax,4),%xmm1
ff ff
subss  -0x8(%rbp),%xmm1
cvtsi2ssl -0x340(%rbp),%xmm2
ff
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x334(%rbp)
ff
movslq -0x33c(%rbp),%rax
movss  -0x330(%rbp,%rax,4),%xmm0
ff ff
subss  -0xc(%rbp),%xmm0
movslq -0x33c(%rbp),%rax
movss  -0x330(%rbp,%rax,4),%xmm1
ff ff
subss  -0xc(%rbp),%xmm1
cvtsi2ssl -0x340(%rbp),%xmm2
ff
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x338(%rbp)
ff
movss  -0x334(%rbp),%xmm0
ff
movss  -0x338(%rbp),%xmm1
ff
lea    0xd73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x340(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x340(%rbp)
movss  -0x334(%rbp),%xmm0
ff
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x338(%rbp),%xmm0
ff
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    11e9 <main+0xc9>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xd22(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x350,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x348,%rsp
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
lea    0xebc(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeac(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x4(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    1256 <main+0x136>
lea    0x24(%rsp),%r14
lea    0x1b4(%rsp),%rbx
lea    0xe7c(%rip),%r15
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
add    $0x1,%rbp
add    $0x4,%r14
add    $0x4,%rbx
cmp    %rax,%rbp
jl     1190 <main+0x70>
test   %eax,%eax
jle    1256 <main+0x136>
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
unpcklps %xmm0,%xmm1
mov    $0x1,%ebp
xor    %ebx,%ebx
lea    0xe2e(%rip),%r14
nopl   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  0x1b4(%rsp,%rbx,4),%xmm2
movss  0x24(%rsp,%rbx,4),%xmm3
unpcklps %xmm2,%xmm3
subps  %xmm1,%xmm3
shufps $0x0,%xmm0,%xmm0
movaps %xmm3,%xmm1
divps  %xmm0,%xmm1
addps  %xmm3,%xmm1
movaps %xmm1,0x10(%rsp)
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
add    %ebp,%ebp
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
unpcklps %xmm0,%xmm1
addps  0x10(%rsp),%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
movss  %xmm1,0x4(%rsp)
movslq 0xc(%rsp),%rax
add    $0x1,%rbx
cmp    %rax,%rbx
jl     11e0 <main+0xc0>
jmp    1265 <main+0x145>
movss  0x8(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
unpcklps %xmm0,%xmm1
movaps %xmm1,%xmm0
shufps $0x55,%xmm1,%xmm0
lea    0xda2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x348,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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