#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 *, long long);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n, i;
  long long now, prev;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    if (i < 2) {
      now = 1;
      prev = 1;
    } else {
      now = prev + now;
      prev = now - prev;
    }
    printf("%lld ", now);
  }
  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>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11a7 <main+0x87>
cmpl   $0x2,-0xc(%rbp)
jge    1171 <main+0x51>
movq   $0x1,-0x18(%rbp)
movq   $0x1,-0x20(%rbp)
jmp    1189 <main+0x69>
mov    -0x20(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
sub    -0x20(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1146 <main+0x26>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecd(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    118b <main+0x6b>
xor    %ebp,%ebp
mov    $0x1,%r15d
lea    0xeb0(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    %rbx,%rax
cmp    $0x2,%ebp
mov    %rax,%r12
cmovb  %r15,%r12
cmovb  %r15,%rbx
mov    %r14,%rdi
mov    %r12,%rsi
call   1030 <printf@plt>
add    $0x1,%ebp
mov    %rbx,%rax
mov    %r12,%rbx
cmp    0xc(%rsp),%ebp
jl     1160 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%lld \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
%5 = alloca i64
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)
store i32 0, i32* %3
br label %7
7: ; preds = %25, %0
%8 = load i32, i32* %3
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %28
11: ; preds = %7
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %15
14: ; preds = %11
store i64 1, i64* %4
store i64 1, i64* %5
br label %22
15: ; preds = %11
%16 = load i64, i64* %5
%17 = load i64, i64* %4
%18 = add nsw i64 %16, %17
store i64 %18, i64* %4
%19 = load i64, i64* %4
%20 = load i64, i64* %5
%21 = sub nsw i64 %19, %20
store i64 %21, i64* %5
br label %22
22: ; preds = %15, %14
%23 = load i64, i64* %4
%24 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %23)
br label %25
25: ; preds = %22
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %7
28: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%lld \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 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %18
6: ; preds = %0, %6
%7 = phi i64 [ %13, %6 ], [ undef, %0 ]
%8 = phi i64 [ %12, %6 ], [ undef, %0 ]
%9 = phi i32 [ %15, %6 ], [ 0, %0 ]
%10 = icmp ult i32 %9, 2
%11 = add nsw i64 %7, %8
%12 = select i1 %10, i64 1, i64 %11
%13 = select i1 %10, i64 1, i64 %8
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %12)
%15 = add nuw nsw i32 %9, 1
%16 = load i32, i32* %1
%17 = icmp slt i32 %15, %16
br i1 %17, label %6, label %18
18: ; preds = %6, %0
ret i32 0
}