#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 = 1e5 + 7;
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,1){
int x = random(2,n - 1);
if (Pow(x,n - 1,n) != 1)return false;
}
return true;
}
int check(int n){
if (prime(n))return 2;
int ans = 1;
FOR(i,2,(int)sqrt(n))if (n % i == 0){
int res = 1;
while(n % i == 0){
res++;
n = n / i;
}
ans = ans * res;
}
if (n > 1)ans = ans * 2;
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));
int l,r;cin >> l >> r;
int q = 0,k,t,cnt = 0;
FOR(i,l,r){
cnt++;
if (cnt == 10000)break;
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+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgZmkgZmlyc3QKI2RlZmluZSBzZSBzZWNvbmQKI2RlZmluZSBNT0QgMTAwMDAwMDAwNwojZGVmaW5lIEZPUihpLGEsYikgZm9yIChpbnQgaSA9IChhKTtpIDw9IChiKTtpKyspCiNkZWZpbmUgRk9EKGksYSxiKSBmb3IgKGludCBpID0gKGIpO2kgPj0gKGEpO2ktLSkKI2RlZmluZSBBTEwoeCkgKHgpLmJlZ2luKCksKHgpLmVuZCgpCiNkZWZpbmUgaWkgcGFpcjxsbCxsbD4KI2RlZmluZSBpaWkgcGFpcjxpbnQscGFpcjxpbnQsaW50Pj4KLy9jb25zdCBpbnQgTU9EID0gOTk4MjQ0MzUzOwpjb25zdCBpbnQgTUFYTiA9IDFlNSArIDc7CmludCByYW5kb20oaW50IGwsaW50IHIpewogICAgcmV0dXJuIGwgKyByYW5kKCkgJSAociAtIGwgKyAxKTsKfQppbnQgUG93KGludCBhLGludCBiLGludCBtb2QpewogICAgaWYgKGIgPT0gMSlyZXR1cm4gYTsKICAgIGxsIHggPSBQb3coYSxiIC8gMixtb2QpOwogICAgaWYgKGIgJiAxKXJldHVybiB4ICogeCAlIG1vZCAqIGEgJSBtb2Q7CiAgICByZXR1cm4geCAqIHggJSBtb2Q7Cn0KYm9vbCBwcmltZShpbnQgbil7CiAgICBpZiAobiA9PSAyKXJldHVybiB0cnVlOwogICAgRk9SKGksMSwxKXsKICAgICAgICBpbnQgeCA9IHJhbmRvbSgyLG4gLSAxKTsKICAgICAgICBpZiAoUG93KHgsbiAtIDEsbikgIT0gMSlyZXR1cm4gZmFsc2U7CiAgICB9CiAgICByZXR1cm4gdHJ1ZTsKfQppbnQgY2hlY2soaW50IG4pewogICAgaWYgKHByaW1lKG4pKXJldHVybiAyOwogICAgaW50IGFucyA9IDE7CiAgICBGT1IoaSwyLChpbnQpc3FydChuKSlpZiAobiAlIGkgPT0gMCl7CiAgICAgICAgaW50IHJlcyA9IDE7CiAgICAgICAgd2hpbGUobiAlIGkgPT0gMCl7CiAgICAgICAgICAgIHJlcysrOwogICAgICAgICAgICBuID0gbiAvIGk7CiAgICAgICAgfQogICAgICAgIGFucyA9IGFucyAqIHJlczsKICAgIH0KICAgIGlmIChuID4gMSlhbnMgPSBhbnMgKiAyOwogICAgcmV0dXJuIGFuczsKfQppbnQgbWFpbigpewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICBjaW4udGllKDApOyBjb3V0LnRpZSgwKTsKICAgIC8vZnJlb3BlbigiTVJHLklOUCIsInIiLHN0ZGluKTsKICAgIC8vZnJlb3BlbigiTVJHLk9VVCIsInciLHN0ZG91dCk7CiAgICBzcmFuZCh0aW1lKE5VTEwpKTsKICAgIGludCBsLHI7Y2luID4+IGwgPj4gcjsKICAgIGludCBxID0gMCxrLHQsY250ID0gMDsKICAgIEZPUihpLGwscil7CiAgICAgICAgY250Kys7CiAgICAgICAgaWYgKGNudCA9PSAxMDAwMClicmVhazsKICAgICAgICBpbnQgcmVzID0gY2hlY2soaSk7CiAgICAgICAgaWYgKHJlcyA+IHEpewogICAgICAgICAgICBxID0gcmVzOwogICAgICAgICAgICBrID0gaTt0ID0gMDsKICAgICAgICB9CiAgICAgICAgaWYgKHJlcyA9PSBxKXQrKzsKICAgIH0KICAgIGNvdXQgPDwgcSA8PCAnICcgPDwgayA8PCAnICcgPDwgdDsKICAgIHJldHVybiAwXjA7Cn0=