#import <stdio.h>

int main(int argc, const char * argv[]) {
        int a;
        scanf("%d", &a);
        int c=0;
        for(int i=1;i<=a;i+=2){
            int d=0;
            for(int j=1;j<=i;j++){
                if(i%j==0) d++;
            }
            if(d==8) c++;
        }
        printf("%d\n",c);
    return 0;
}

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_462/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_462/source.m"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1

; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main(i32 noundef %argc, ptr nocapture noundef readnone %argv) local_unnamed_addr #0 {
entry:
  %a = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #3
  %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a)
  %0 = load i32, ptr %a, align 4, !tbaa !5
  %cmp.not24 = icmp slt i32 %0, 1
  br i1 %cmp.not24, label %for.cond.cleanup, label %for.cond1.preheader

for.cond1.preheader:                              ; preds = %entry, %for.body4.epil
  %indvar = phi i32 [ %indvar.next, %for.body4.epil ], [ 0, %entry ]
  %i.026 = phi i32 [ %add, %for.body4.epil ], [ 1, %entry ]
  %c.025 = phi i32 [ %spec.select, %for.body4.epil ], [ 0, %entry ]
  %1 = icmp eq i32 %indvar, 0
  br i1 %1, label %for.body4.epil, label %for.cond1.preheader.new

for.cond1.preheader.new:                          ; preds = %for.cond1.preheader
  %2 = shl nuw nsw i32 %indvar, 1
  br label %for.body4

for.cond.cleanup:                                 ; preds = %for.body4.epil, %entry
  %c.0.lcssa = phi i32 [ 0, %entry ], [ %spec.select, %for.body4.epil ]
  %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %c.0.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #3
  ret i32 0

for.body4.epil:                                   ; preds = %for.body4, %for.cond1.preheader
  %j.023.unr = phi i32 [ 1, %for.cond1.preheader ], [ %inc6.1, %for.body4 ]
  %d.022.unr = phi i32 [ 0, %for.cond1.preheader ], [ %spec.select21.1, %for.body4 ]
  %rem.epil = urem i32 %i.026, %j.023.unr
  %cmp5.epil = icmp eq i32 %rem.epil, 0
  %inc.epil = zext i1 %cmp5.epil to i32
  %spec.select21.epil = add nuw nsw i32 %d.022.unr, %inc.epil
  %cmp7 = icmp eq i32 %spec.select21.epil, 8
  %inc9 = zext i1 %cmp7 to i32
  %spec.select = add nuw nsw i32 %c.025, %inc9
  %add = add nuw nsw i32 %i.026, 2
  %cmp.not = icmp sgt i32 %add, %0
  %indvar.next = add i32 %indvar, 1
  br i1 %cmp.not, label %for.cond.cleanup, label %for.cond1.preheader

for.body4:                                        ; preds = %for.body4, %for.cond1.preheader.new
  %j.023 = phi i32 [ 1, %for.cond1.preheader.new ], [ %inc6.1, %for.body4 ]
  %d.022 = phi i32 [ 0, %for.cond1.preheader.new ], [ %spec.select21.1, %for.body4 ]
  %niter = phi i32 [ 0, %for.cond1.preheader.new ], [ %niter.next.1, %for.body4 ]
  %rem = urem i32 %i.026, %j.023
  %cmp5 = icmp eq i32 %rem, 0
  %inc = zext i1 %cmp5 to i32
  %spec.select21 = add nuw nsw i32 %d.022, %inc
  %inc6 = add nuw nsw i32 %j.023, 1
  %rem.1 = urem i32 %i.026, %inc6
  %cmp5.1 = icmp eq i32 %rem.1, 0
  %inc.1 = zext i1 %cmp5.1 to i32
  %spec.select21.1 = add nuw nsw i32 %spec.select21, %inc.1
  %inc6.1 = add nuw nsw i32 %j.023, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %2
  br i1 %niter.ncmp.1, label %for.body4.epil, label %for.body4
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.linker.options = !{}
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
