#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);
scalar_t__ scanf(char *, int *);
int main(void) {
  int n, numSubset[76 + 1];
  numSubset[0] = 1;
  numSubset[1] = 1;
  numSubset[2] = 2;
  for (n = 3; n <= 76; n++)
    numSubset[n] = numSubset[n - 2] + numSubset[n - 3];
  while (scanf("%d", &n) > 0) {
    printf("%d\n", numSubset[n]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x140(%rbp)
movl   $0x1,-0x13c(%rbp)
movl   $0x2,-0x138(%rbp)
movl   $0x3,-0x8(%rbp)
cmpl   $0x4c,-0x8(%rbp)
jg     1198 <main+0x78>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
cltq
mov    -0x140(%rbp,%rax,4),%ecx
mov    -0x8(%rbp),%eax
sub    $0x3,%eax
cltq
add    -0x140(%rbp,%rax,4),%ecx
movslq -0x8(%rbp),%rax
mov    %ecx,-0x140(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1157 <main+0x37>
jmp    119d <main+0x7d>
lea    0xe5c(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x0,%rax
jle    11d3 <main+0xb3>
movslq -0x8(%rbp),%rax
mov    -0x140(%rbp,%rax,4),%esi
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
jmp    119d <main+0x7d>
xor    %eax,%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x150,%rsp
movabs $0x100000001,%rax
mov    %rax,0x10(%rsp)
movl   $0x2,0x18(%rsp)
movdqa 0xeb5(%rip),%xmm1
mov    $0x9,%eax
movq   0x14(%rsp),%xmm0
cs nopw 0x0(%rax,%rax,1)
pshufd $0x55,%xmm1,%xmm1
punpckldq %xmm0,%xmm1
paddd  %xmm0,%xmm1
movq   %xmm1,-0x8(%rsp,%rax,4)
cmp    $0x51,%rax
je     11b5 <main+0x95>
pshufd $0x55,%xmm0,%xmm2
punpckldq %xmm1,%xmm2
paddd  %xmm1,%xmm2
pshufd $0x55,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
paddd  %xmm2,%xmm1
pshufd $0x55,%xmm2,%xmm0
punpcklqdq %xmm1,%xmm2
movdqu %xmm2,(%rsp,%rax,4)
punpckldq %xmm1,%xmm0
paddd  %xmm1,%xmm0
movq   %xmm0,0x10(%rsp,%rax,4)
add    $0x8,%rax
jmp    1160 <main+0x40>
movl   $0x4d,0xc(%rsp)
lea    0xe4c(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jle    1211 <main+0xf1>
lea    0xe39(%rip),%r14
lea    0xe2f(%rip),%r15
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
movslq 0xc(%rsp),%rax
mov    0x10(%rsp,%rax,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jg     11f0 <main+0xd0>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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