#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 *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int wisochina, osnowa, space, i, s, o;
  scanf("%d", &wisochina);
  osnowa = 2 * wisochina - 1;
  i = 0;
  o = i;
  space = osnowa / 2;
  s = space;
  for (; wisochina > 0; wisochina--) {
    for (; space > 0; space--) {
      printf("  ");
    }
    for (; osnowa - i <= osnowa + o; i--) {
      printf(" .");
    }
    s--;
    o++;
    i = o;
    space = s;
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    120a <main+0xea>
jmp    117b <main+0x5b>
cmpl   $0x0,-0x10(%rbp)
jle    119f <main+0x7f>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    117b <main+0x5b>
jmp    11a4 <main+0x84>
mov    -0xc(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jg     11d2 <main+0xb2>
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    11a4 <main+0x84>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x10(%rbp)
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    116c <main+0x4c>
xor    %eax,%eax
add    $0x20,%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    0xebb(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    1215 <main+0xe5>
add    %eax,%eax
add    $0xffffffff,%eax
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
lea    0x1(%rbx),%ebp
xor    %r13d,%r13d
lea    0xe8d(%rip),%r15
lea    0xe89(%rip),%r14
mov    %rax,0x18(%rsp)
mov    %eax,0x10(%rsp)
jmp    11c2 <main+0x92>
nopl   0x0(%rax,%rax,1)
mov    0x20(%rsp),%rbx
add    $0xffffffff,%ebx
add    $0x1,%r13d
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%ecx
mov    %ecx,0xc(%rsp)
mov    0x14(%rsp),%ebp
add    $0xffffffff,%ebp
addl   $0xffffffff,0x10(%rsp)
cmp    $0x1,%eax
jle    1215 <main+0xe5>
mov    %ebp,0x14(%rsp)
mov    %rbx,0x20(%rsp)
test   %ebx,%ebx
jle    11e0 <main+0xb0>
nop
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0xffffffff,%ebp
cmp    $0x1,%ebp
ja     11d0 <main+0xa0>
mov    0x18(%rsp),%rax
lea    (%rax,%r13,1),%r12d
sub    %r13d,%eax
mov    0x10(%rsp),%ebp
cmp    %r12d,%eax
jg     1190 <main+0x60>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%ebp
cmp    %r12d,%ebp
jle    1200 <main+0xd0>
jmp    1190 <main+0x60>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [3 x i8] c" .\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = mul nsw i32 2, %9
%11 = sub nsw i32 %10, 1
store i32 %11, i32* %3
store i32 0, i32* %5
%12 = load i32, i32* %5
store i32 %12, i32* %7
%13 = load i32, i32* %3
%14 = sdiv i32 %13, 2
store i32 %14, i32* %4
%15 = load i32, i32* %4
store i32 %15, i32* %6
br label %16
16: ; preds = %50, %0
%17 = load i32, i32* %2
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %53
19: ; preds = %16
br label %20
20: ; preds = %25, %19
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23
%26 = load i32, i32* %4
%27 = add nsw i32 %26, -1
store i32 %27, i32* %4
br label %20
28: ; preds = %20
br label %29
29: ; preds = %39, %28
%30 = load i32, i32* %3
%31 = load i32, i32* %5
%32 = sub nsw i32 %30, %31
%33 = load i32, i32* %3
%34 = load i32, i32* %7
%35 = add nsw i32 %33, %34
%36 = icmp sle i32 %32, %35
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %39
39: ; preds = %37
%40 = load i32, i32* %5
%41 = add nsw i32 %40, -1
store i32 %41, i32* %5
br label %29
42: ; preds = %29
%43 = load i32, i32* %6
%44 = add nsw i32 %43, -1
store i32 %44, i32* %6
%45 = load i32, i32* %7
%46 = add nsw i32 %45, 1
store i32 %46, i32* %7
%47 = load i32, i32* %7
store i32 %47, i32* %5
%48 = load i32, i32* %6
store i32 %48, i32* %4
%49 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %42
%51 = load i32, i32* %2
%52 = add nsw i32 %51, -1
store i32 %52, i32* %2
br label %16
53: ; preds = %16
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [3 x i8] c" .\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = shl nsw i32 %4, 1
%6 = add nsw i32 %5, -1
%7 = icmp sgt i32 %4, 0
br i1 %7, label %8, label %36
8: ; preds = %0
%9 = sdiv i32 %6, 2
br label %10
10: ; preds = %8, %29
%11 = phi i32 [ %31, %29 ], [ 0, %8 ]
%12 = phi i32 [ %30, %29 ], [ %9, %8 ]
%13 = icmp sgt i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %18, %10
%15 = add nsw i32 %11, %6
%16 = sub nsw i32 %6, %11
%17 = icmp sgt i32 %16, %15
br i1 %17, label %29, label %23
18: ; preds = %10, %18
%19 = phi i32 [ %21, %18 ], [ %12, %10 ]
%20 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%21 = add nsw i32 %19, -1
%22 = icmp ugt i32 %19, 1
br i1 %22, label %18, label %14
23: ; preds = %14, %23
%24 = phi i32 [ %26, %23 ], [ %11, %14 ]
%25 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%26 = add nsw i32 %24, -1
%27 = sub nsw i32 %6, %26
%28 = icmp sgt i32 %27, %15
br i1 %28, label %29, label %23
29: ; preds = %23, %14
%30 = add nsw i32 %12, -1
%31 = add nuw nsw i32 %11, 1
%32 = call i32 @putchar(i32 10)
%33 = load i32, i32* %1
%34 = add nsw i32 %33, -1
store i32 %34, i32* %1
%35 = icmp sgt i32 %33, 1
br i1 %35, label %10, label %36
36: ; preds = %29, %0
ret i32 0
}