#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*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int n, m, i, j;
  scanf("%d", &n);
  m = 2 * n - 1;
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++)
      putchar(j >= m / 2 - i && j < m / 2 + i + 1 ? '*' : '_');
    puts("");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1208 <main+0xd8>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ee <main+0xbe>
mov    -0x14(%rbp),%ecx
mov    -0xc(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
mov    %eax,%edx
sub    -0x10(%rbp),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x15(%rbp)
jl     11c5 <main+0x95>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
add    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%dl
mov    $0x5f,%eax
mov    $0x2a,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1175 <main+0x45>
lea    0xe0d(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1162 <main+0x32>
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    $0x18,%rsp
lea    0xecb(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    11d9 <main+0xb9>
add    %eax,%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
mov    %rcx,0x8(%rsp)
cmp    $0x2,%eax
mov    $0x1,%ebp
cmovge %eax,%ebp
xor    %ecx,%ecx
mov    $0x2a,%r12d
mov    $0x5f,%r13d
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rax
mov    %eax,%ebx
sub    %ecx,%ebx
mov    %rcx,0x10(%rsp)
lea    (%rcx,%rax,1),%r14d
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nop
cmp    %r14d,%r15d
mov    $0x5f,%edi
cmovle %r12d,%edi
cmp    %ebx,%r15d
cmovl  %r13d,%edi
call   1030 <putchar@plt>
add    $0x1,%r15d
cmp    %r15d,%ebp
jne    11a0 <main+0x80>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%rcx
add    $0x1,%ecx
cmp    0x4(%rsp),%ecx
jl     1180 <main+0x60>
xor    %eax,%eax
add    $0x18,%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 = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
%8 = mul nsw i32 2, %7
%9 = sub nsw i32 %8, 1
store i32 %9, i32* %3
store i32 0, i32* %4
br label %10
10: ; preds = %45, %0
%11 = load i32, i32* %4
%12 = load i32, i32* %2
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %48
14: ; preds = %10
store i32 0, i32* %5
br label %15
15: ; preds = %40, %14
%16 = load i32, i32* %5
%17 = load i32, i32* %3
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %43
19: ; preds = %15
%20 = load i32, i32* %5
%21 = load i32, i32* %3
%22 = sdiv i32 %21, 2
%23 = load i32, i32* %4
%24 = sub nsw i32 %22, %23
%25 = icmp sge i32 %20, %24
br i1 %25, label %26, label %34
26: ; preds = %19
%27 = load i32, i32* %5
%28 = load i32, i32* %3
%29 = sdiv i32 %28, 2
%30 = load i32, i32* %4
%31 = add nsw i32 %29, %30
%32 = add nsw i32 %31, 1
%33 = icmp slt i32 %27, %32
br label %34
34: ; preds = %26, %19
%35 = phi i1 [ false, %19 ], [ %33, %26 ]
%36 = zext i1 %35 to i64
%37 = select i1 %35, i32 42, i32 95
%38 = trunc i32 %37 to i8
%39 = call i32 @putchar(i8 signext %38)
br label %40
40: ; preds = %34
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %15
43: ; preds = %15
%44 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %45
45: ; preds = %43
%46 = load i32, i32* %4
%47 = add nsw i32 %46, 1
store i32 %47, i32* %4
br label %10
48: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\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 i32 %5, -1
%7 = icmp sgt i32 %4, 0
br i1 %7, label %8, label %29
8: ; preds = %0
%9 = sdiv i32 %6, 2
%10 = call i32 @llvm.smax.i32(i32 %6, i32 1)
br label %11
11: ; preds = %24, %8
%12 = phi i32 [ 0, %8 ], [ %26, %24 ]
%13 = sub nsw i32 %9, %12
%14 = add nsw i32 %12, %9
br label %15
15: ; preds = %11, %15
%16 = phi i32 [ 0, %11 ], [ %22, %15 ]
%17 = icmp sge i32 %16, %13
%18 = icmp sle i32 %16, %14
%19 = select i1 %17, i1 %18, i1 false
%20 = select i1 %19, i8 42, i8 95
%21 = call i32 @putchar(i8 signext %20)
%22 = add nuw nsw i32 %16, 1
%23 = icmp eq i32 %22, %10
br i1 %23, label %24, label %15
24: ; preds = %15
%25 = call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
%26 = add nuw nsw i32 %12, 1
%27 = load i32, i32* %1
%28 = icmp slt i32 %26, %27
br i1 %28, label %11, label %29
29: ; preds = %24, %0
ret i32 0
}