#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 N;
  int w;
  int h;
  scanf("%d", &N);
  scanf("%d", &w);
  scanf("%d", &h);
  int a;
  int b;
  for (b = 1; b <= h; b++) {
    for (a = 1; a <= w; a++) {
      if (a == 1) {
        printf("%d", N);
      } else if (a == w) {
        printf("%d", N);
        printf("\n");
      } else {
        printf(" ");
      }
    }
  }
  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>
lea    0xeba(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     120e <main+0xee>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11fb <main+0xdb>
cmpl   $0x1,-0x14(%rbp)
jne    11a5 <main+0x85>
mov    -0x8(%rbp),%esi
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e8 <main+0xc8>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    11d5 <main+0xb5>
mov    -0x8(%rbp),%esi
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e3 <main+0xc3>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e8 <main+0xc8>
jmp    11ed <main+0xcd>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1179 <main+0x59>
jmp    1200 <main+0xe0>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1166 <main+0x46>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xec1(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
jle    11de <main+0xae>
mov    $0x1,%ebx
mov    0x4(%rsp),%eax
lea    0xe82(%rip),%r14
jmp    118d <main+0x5d>
mov    0x8(%rsp),%ecx
lea    0x1(%rbx),%edx
cmp    %ecx,%ebx
mov    %edx,%ebx
jge    11de <main+0xae>
test   %eax,%eax
jle    1184 <main+0x54>
mov    0xc(%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jl     1180 <main+0x50>
mov    $0x1,%ebp
jmp    11bd <main+0x8d>
nop
call   1030 <putchar@plt>
mov    0x4(%rsp),%eax
cmp    %eax,%ebp
jge    1180 <main+0x50>
add    $0x1,%ebp
mov    $0x20,%edi
cmp    %eax,%ebp
jne    11b0 <main+0x80>
mov    0xc(%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
jmp    11b0 <main+0x80>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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