#include <iostream>
#include <cmath>
using namespace std;
int A,B,D,Ansm,Ansn;
void init()
{
freopen("divisors.in","r",stdin);
freopen("divisors.out","w",stdout);
cin >> A >> B;
}
int main()
{
init();
int i,j,c,d;
for(i=A;i<=B;i++)
{
d=i/2+1;
c=2;
for (j=2;j<=d;j++)
if (!(i%j) && i!=j)
c++;
if (c>Ansm)
{
Ansm=c;
Ansn=i;
}
}
printf("Between %d and %d,%d has a maximum of %d divisors.",A,B,Ansn,Ansm);
return 0;
}