#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fi first
#define se second
#define MOD 1000000007
#define FOR(i,a,b) for (int i = (a);i <= (b);i++)
#define FOD(i,a,b) for (int i = (b);i >= (a);i--)
#define ALL(x) (x).begin(),(x).end()
#define ii pair<ll,ll>
#define iii pair<int,pair<int,int>>
//const int MOD = 998244353;
const int MAXN = 1e3 + 7;
vector<int> v;
bool Prime[MAXN];
void sieve(){
Prime[0] = Prime[1] = true;
FOR(i,2,(int)sqrt(MAXN))
if (!Prime[i])
for (int j = i * i;j <= MAXN;j += i)
Prime[j] = true;
FOR(i,1,MAXN)if (!Prime[i])
v.push_back(i);
}
int random(int l,int r){
return l + rand() % (r - l + 1);
}
int Pow(int a,int b,int mod){
if (b == 1)return a;
ll x = Pow(a,b / 2,mod);
if (b & 1)return x * x % mod * a % mod;
return x * x % mod;
}
bool prime(int n){
if (n == 2)return true;
FOR(i,1,2){
int x = random(2,n - 1);
if (Pow(x,n - 1,n) != 1)return false;
}
return true;
}
bool is_square(int n){
int c = sqrt(n + 4);
return c * c == n || (c - 1) * (c - 1) == n;
}
int check(int n){
int ans = 1;
for (auto i : v)if (n % i == 0){
int res = 1;
while(n % i == 0){
res++;
n = n / i;
}
ans = ans * res;
}else if (i * i * i > n)break;
if (n > 1)
if (prime(n))ans = ans * 2;
else if (is_square(n))ans = ans * 3;
else ans = ans * 4;
return ans;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
//freopen("MRG.INP","r",stdin);
//freopen("MRG.OUT","w",stdout);
srand(time(NULL));
sieve();
int l,r;cin >> l >> r;
int q = 0,k,t,cnt = 0;
FOR(i,l,r){
int res = check(i);
if (res > q){
q = res;
k = i;t = 0;
}
if (res == q)t++;
}
cout << q << ' ' << k << ' ' << t;
return 0^0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUg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nQgeCA9IHJhbmRvbSgyLG4gLSAxKTsKICAgICAgICBpZiAoUG93KHgsbiAtIDEsbikgIT0gMSlyZXR1cm4gZmFsc2U7CiAgICB9CiAgICByZXR1cm4gdHJ1ZTsKfQpib29sIGlzX3NxdWFyZShpbnQgbil7CiAgICBpbnQgYyA9IHNxcnQobiArIDQpOwogICAgcmV0dXJuIGMgKiBjID09IG4gfHwgKGMgLSAxKSAqIChjIC0gMSkgPT0gbjsKfQppbnQgY2hlY2soaW50IG4pewogICAgaW50IGFucyA9IDE7CiAgICBmb3IgKGF1dG8gaSA6IHYpaWYgKG4gJSBpID09IDApewogICAgICAgIGludCByZXMgPSAxOwogICAgICAgIHdoaWxlKG4gJSBpID09IDApewogICAgICAgICAgICByZXMrKzsKICAgICAgICAgICAgbiA9IG4gLyBpOwogICAgICAgIH0KICAgICAgICBhbnMgPSBhbnMgKiByZXM7CiAgICB9ZWxzZSBpZiAoaSAqIGkgKiBpID4gbilicmVhazsKICAgIGlmIChuID4gMSkKICAgIGlmIChwcmltZShuKSlhbnMgPSBhbnMgKiAyOwogICAgZWxzZSBpZiAoaXNfc3F1YXJlKG4pKWFucyA9IGFucyAqIDM7CiAgICBlbHNlIGFucyA9IGFucyAqIDQ7CiAgICByZXR1cm4gYW5zOwp9CmludCBtYWluKCl7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKICAgIGNpbi50aWUoMCk7IGNvdXQudGllKDApOwogICAgLy9mcmVvcGVuKCJNUkcuSU5QIiwiciIsc3RkaW4pOwogICAgLy9mcmVvcGVuKCJNUkcuT1VUIiwidyIsc3Rkb3V0KTsKICAgIHNyYW5kKHRpbWUoTlVMTCkpOwogICAgc2lldmUoKTsKICAgIGludCBsLHI7Y2luID4+IGwgPj4gcjsKICAgIGludCBxID0gMCxrLHQsY250ID0gMDsKICAgIEZPUihpLGwscil7CiAgICAgICAgaW50IHJlcyA9IGNoZWNrKGkpOwogICAgICAgIGlmIChyZXMgPiBxKXsKICAgICAgICAgICAgcSA9IHJlczsKICAgICAgICAgICAgayA9IGk7dCA9IDA7CiAgICAgICAgfQogICAgICAgIGlmIChyZXMgPT0gcSl0Kys7CiAgICB9CiAgICBjb3V0IDw8IHEgPDwgJyAnIDw8IGsgPDwgJyAnIDw8IHQ7CiAgICByZXR1cm4gMF4wOwp9