#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: minsize nofree nounwind optsize 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) #5
  %0 = load i32, ptr %M, align 4, !tbaa !5
  %1 = load i32, ptr %D, align 4
  %smax = call i32 @llvm.smax.i32(i32 %1, i32 0)
  %2 = add nuw i32 %smax, 1
  %smax22 = call i32 @llvm.smax.i32(i32 %0, i32 0)
  %3 = add nuw i32 %smax22, 1
  br label %for.cond

for.cond:                                         ; preds = %for.cond.cleanup3, %entry
  %m.0 = phi i32 [ 1, %entry ], [ %inc11, %for.cond.cleanup3 ]
  %ans.0 = phi i32 [ 0, %entry ], [ %ans.1, %for.cond.cleanup3 ]
  %exitcond23 = icmp eq i32 %m.0, %3
  br i1 %exitcond23, label %for.cond.cleanup, label %for.cond1

for.cond.cleanup:                                 ; preds = %for.cond
  %call13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %ans.0) #5
  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:                                        ; preds = %for.cond, %for.body4
  %d.0 = phi i32 [ %inc9, %for.body4 ], [ 1, %for.cond ]
  %ans.1 = phi i32 [ %ans.2, %for.body4 ], [ %ans.0, %for.cond ]
  %exitcond = icmp eq i32 %d.0, %2
  br i1 %exitcond, label %for.cond.cleanup3, label %for.body4

for.cond.cleanup3:                                ; preds = %for.cond1
  %inc11 = add nuw i32 %m.0, 1
  br label %for.cond

for.body4:                                        ; preds = %for.cond1
  %rem = urem i32 %d.0, 10
  %div = udiv i32 %d.0, 10
  %cmp5 = icmp ugt i32 %rem, 1
  %cmp6 = icmp ugt i32 %d.0, 19
  %or.cond = and i1 %cmp6, %cmp5
  %mul = mul nuw nsw i32 %rem, %div
  %cmp8 = icmp eq i32 %mul, %m.0
  %inc = zext i1 %cmp8 to i32
  %spec.select = add nsw i32 %ans.1, %inc
  %ans.2 = select i1 %or.cond, i32 %spec.select, i32 %ans.1
  %inc9 = add nuw i32 %d.0, 1
  br label %for.cond1
}

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

; Function Attrs: minsize nofree nounwind optsize
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: minsize nofree nounwind optsize
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.smax.i32(i32, i32) #3

attributes #0 = { minsize nofree nounwind optsize 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 = { minsize nofree nounwind optsize "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 }
attributes #5 = { minsize optsize }

!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"}
