#include<cstdio>
using namespace std;
int i,j,a=0;
int pd(int i){
int tot=0;
for(j=1;j<=i;j++){
if(i%j==0)tot++;}
return tot;}
int main() {
freopen("divisors.in","r",stdin);
freopen("divisors.out","w",stdout);
int n,m;
scanf("%d %d",&n,&m);
int d=0,p=m;
for(i=n;i<=m;i++){
int k=pd(i);
if(k>d){
d=k;p=i;a++;}}
printf("Between %d and %d,%d has a maximum of %d divisors.\n",n,m,p,d);
return 0;
}