#import <stdio.h>
int main() {
	int M,D;
	scanf("%d %d",&M,&D);
	int ans=0;
	for(int m=1;m<=M;m++){
		for(int d=1;d<=D;d++){
			int x = d%10;
			int y = d/10;
			if(x>=2 && y>=2 && x*y==m) ans++;
		}
	}
	printf("%d\n",ans);
}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_223/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_223/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 [6 x i8] c"%d %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() local_unnamed_addr #0 {
entry:
  %M = alloca i32, align 4
  %D = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %M) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %D) #4
  %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %M, ptr noundef nonnull %D)
  %0 = load i32, ptr %M, align 4, !tbaa !5
  %cmp.not25 = icmp slt i32 %0, 1
  br i1 %cmp.not25, label %for.cond.cleanup, label %for.cond1.preheader.lr.ph

for.cond1.preheader.lr.ph:                        ; preds = %entry
  %1 = load i32, ptr %D, align 4, !tbaa !5
  %cmp2.not22 = icmp slt i32 %1, 1
  br i1 %cmp2.not22, label %for.cond.cleanup, label %for.cond1.preheader.preheader

for.cond1.preheader.preheader:                    ; preds = %for.cond1.preheader.lr.ph
  %min.iters.check = icmp ult i32 %1, 8
  %n.vec = and i32 %1, -8
  %ind.end = or i32 %n.vec, 1
  %cmp.n = icmp eq i32 %1, %n.vec
  br label %for.cond1.preheader

for.cond1.preheader:                              ; preds = %for.cond1.preheader.preheader, %for.cond1.for.cond.cleanup3_crit_edge
  %ans.027 = phi i32 [ %ans.2.lcssa, %for.cond1.for.cond.cleanup3_crit_edge ], [ 0, %for.cond1.preheader.preheader ]
  %m.026 = phi i32 [ %inc11, %for.cond1.for.cond.cleanup3_crit_edge ], [ 1, %for.cond1.preheader.preheader ]
  br i1 %min.iters.check, label %for.body4.preheader, label %vector.ph

vector.ph:                                        ; preds = %for.cond1.preheader
  %2 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %ans.027, i64 0
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %m.026, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %2, %vector.ph ], [ %predphi, %vector.body ]
  %vec.phi31 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi33, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %vec.ind.frozen = freeze <4 x i32> %vec.ind
  %3 = udiv <4 x i32> %vec.ind.frozen, <i32 10, i32 10, i32 10, i32 10>
  %4 = mul <4 x i32> %3, <i32 10, i32 10, i32 10, i32 10>
  %.decomposed = sub <4 x i32> %vec.ind.frozen, %4
  %step.add.frozen = freeze <4 x i32> %step.add
  %5 = udiv <4 x i32> %step.add.frozen, <i32 10, i32 10, i32 10, i32 10>
  %6 = mul <4 x i32> %5, <i32 10, i32 10, i32 10, i32 10>
  %.decomposed37 = sub <4 x i32> %step.add.frozen, %6
  %7 = icmp ugt <4 x i32> %.decomposed, <i32 1, i32 1, i32 1, i32 1>
  %8 = icmp ugt <4 x i32> %.decomposed37, <i32 1, i32 1, i32 1, i32 1>
  %9 = icmp ugt <4 x i32> %vec.ind, <i32 19, i32 19, i32 19, i32 19>
  %10 = icmp ugt <4 x i32> %step.add, <i32 19, i32 19, i32 19, i32 19>
  %11 = and <4 x i1> %9, %7
  %12 = and <4 x i1> %10, %8
  %13 = mul nuw nsw <4 x i32> %.decomposed, %3
  %14 = mul nuw nsw <4 x i32> %.decomposed37, %5
  %15 = icmp eq <4 x i32> %13, %broadcast.splat
  %16 = icmp eq <4 x i32> %14, %broadcast.splat
  %narrow = select <4 x i1> %11, <4 x i1> %15, <4 x i1> zeroinitializer
  %17 = zext <4 x i1> %narrow to <4 x i32>
  %predphi = add <4 x i32> %vec.phi, %17
  %narrow34 = select <4 x i1> %12, <4 x i1> %16, <4 x i1> zeroinitializer
  %18 = zext <4 x i1> %narrow34 to <4 x i32>
  %predphi33 = add <4 x i32> %vec.phi31, %18
  %index.next = add nuw i32 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %19 = icmp eq i32 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %predphi33, %predphi
  %20 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %for.cond1.for.cond.cleanup3_crit_edge, label %for.body4.preheader

for.body4.preheader:                              ; preds = %for.cond1.preheader, %middle.block
  %ans.124.ph = phi i32 [ %ans.027, %for.cond1.preheader ], [ %20, %middle.block ]
  %d.023.ph = phi i32 [ 1, %for.cond1.preheader ], [ %ind.end, %middle.block ]
  br label %for.body4

for.cond.cleanup:                                 ; preds = %for.cond1.for.cond.cleanup3_crit_edge, %for.cond1.preheader.lr.ph, %entry
  %ans.0.lcssa = phi i32 [ 0, %entry ], [ 0, %for.cond1.preheader.lr.ph ], [ %ans.2.lcssa, %for.cond1.for.cond.cleanup3_crit_edge ]
  %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %ans.0.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %D) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %M) #4
  ret i32 0

for.cond1.for.cond.cleanup3_crit_edge:            ; preds = %for.body4, %middle.block
  %ans.2.lcssa = phi i32 [ %20, %middle.block ], [ %ans.2, %for.body4 ]
  %inc11 = add nuw i32 %m.026, 1
  %exitcond30.not = icmp eq i32 %m.026, %0
  br i1 %exitcond30.not, label %for.cond.cleanup, label %for.cond1.preheader

for.body4:                                        ; preds = %for.body4.preheader, %for.body4
  %ans.124 = phi i32 [ %ans.2, %for.body4 ], [ %ans.124.ph, %for.body4.preheader ]
  %d.023 = phi i32 [ %inc9, %for.body4 ], [ %d.023.ph, %for.body4.preheader ]
  %rem = urem i32 %d.023, 10
  %div = udiv i32 %d.023, 10
  %cmp5 = icmp ugt i32 %rem, 1
  %cmp6 = icmp ugt i32 %d.023, 19
  %or.cond = and i1 %cmp6, %cmp5
  %mul = mul nuw nsw i32 %rem, %div
  %cmp8 = icmp eq i32 %mul, %m.026
  %inc = zext i1 %cmp8 to i32
  %spec.select = add nsw i32 %ans.124, %inc
  %ans.2 = select i1 %or.cond, i32 %spec.select, i32 %ans.124
  %inc9 = add nuw i32 %d.023, 1
  %exitcond.not = icmp eq i32 %d.023, %1
  br i1 %exitcond.not, label %for.cond1.for.cond.cleanup3_crit_edge, label %for.body4, !llvm.loop !12
}

; 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !11, !10}
