除非l==r 最大值等於本身 那就是2是最多的 每兩個數有一個被除數2
#include <stdio.h>
#include <bits/stdc++.h>
#define mod 1000000007
#define ll long long
using namespace std;
int l,r;
int main()
{
cin>>l>>r;
if(l==r) cout<<l;
else if((l%3==0) && (r==l+3))cout<<3;
else cout<<2<<endl;
return 0;
}