program main
	implicit integer(a-z)
    ans=0
    
    read(*,*)n
    
    do i=1,n
    	count=0
        do j=1,n
        	if(mod(i,j).eq.0.and.mod(i,2).eq.1) then
            	count=count+1
            end if
        end	do
        if(count.eq.8) ans=ans+1
    end do
    
    write(*,*)ans
    
end program main
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
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"

@_QQcl.42c9b526d04f230de720a8961bfaa47d = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5638/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.42c9b526d04f230de720a8961bfaa47d, i32 5)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = load i32, ptr %1, align 4, !tbaa !3
  %6 = sext i32 %5 to i64
  %7 = icmp sgt i32 %5, 0
  br i1 %7, label %.preheader.us.preheader, label %._crit_edge15

.preheader.us.preheader:                          ; preds = %0
  %xtraiter = and i64 %6, 1
  %8 = icmp eq i32 %5, 1
  %unroll_iter = and i64 %6, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %9 = phi i64 [ %28, %._crit_edge.us ], [ %6, %.preheader.us.preheader ]
  %10 = phi i32 [ %27, %._crit_edge.us ], [ 1, %.preheader.us.preheader ]
  %.0814.us = phi i32 [ %spec.select12.us, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %11 = and i32 %10, -2147483647
  %12 = icmp eq i32 %11, 1
  br i1 %8, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %13 = phi i32 [ %21, %.preheader.us.new ], [ 1, %.preheader.us ]
  %.013.us = phi i32 [ %spec.select.us.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.urem = urem i32 %10, %13
  %14 = icmp eq i32 %.urem, 0
  %15 = and i1 %12, %14
  %16 = zext i1 %15 to i32
  %spec.select.us = add i32 %.013.us, %16
  %17 = add nuw i32 %13, 1
  %.urem.1 = urem i32 %10, %17
  %18 = icmp eq i32 %.urem.1, 0
  %19 = and i1 %12, %18
  %20 = zext i1 %19 to i32
  %spec.select.us.1 = add i32 %spec.select.us, %20
  %21 = add nuw i32 %13, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1.not = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1.not, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %spec.select.us.lcssa.ph = phi i32 [ undef, %.preheader.us ], [ %spec.select.us.1, %.preheader.us.new ]
  %.unr17 = phi i32 [ 1, %.preheader.us ], [ %21, %.preheader.us.new ]
  %.013.us.unr = phi i32 [ 0, %.preheader.us ], [ %spec.select.us.1, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %.urem.epil = urem i32 %10, %.unr17
  %22 = icmp eq i32 %.urem.epil, 0
  %23 = and i1 %12, %22
  %24 = zext i1 %23 to i32
  %spec.select.us.epil = add i32 %.013.us.unr, %24
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %spec.select.us.lcssa = phi i32 [ %spec.select.us.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %spec.select.us.epil, %._crit_edge.us.epilog-lcssa ]
  %25 = icmp eq i32 %spec.select.us.lcssa, 8
  %26 = zext i1 %25 to i32
  %spec.select12.us = add i32 %.0814.us, %26
  %27 = add nuw i32 %10, 1
  %28 = add nsw i64 %9, -1
  %29 = icmp sgt i64 %9, 1
  br i1 %29, label %.preheader.us, label %._crit_edge15

._crit_edge15:                                    ; preds = %._crit_edge.us, %0
  %.08.lcssa = phi i32 [ 0, %0 ], [ %spec.select12.us, %._crit_edge.us ]
  %30 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.42c9b526d04f230de720a8961bfaa47d, i32 17)
  %31 = call i1 @_FortranAioOutputInteger32(ptr %30, i32 %.08.lcssa)
  %32 = call i32 @_FortranAioEndIoStatement(ptr %30)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
