#include<cstdio>
using namespace std;
int tot,l,r,maxx,k;
int main()
{
freopen("divisors.in","r",stdin);
freopen("divisors.out","w",stdout);
scanf("%d%d",&l,&r);
for (int i=l; i<=r; ++i)
{
tot=0;
for (int j=1; j*j<=i; ++j)
if (i%j==0)
{
tot+=2;
if (i/j==j) tot--;
}
if (maxx<tot)
{
maxx=tot;
k=i;
}
}
printf("Between %d and %d,%d has a maximum of %d divisors.",l,r,k,maxx);
}