#include using namespace std; //#include //using namespace atcoder; using ll=long long; using Graph=vector>; #define MAX 200003 #define MOD 998244353 #define INF 1000000000 vector parent(200001); int find(int x){ int y=parent[x]; while(y!=parent[y]){ y=find(y); } return parent[x]=y; } void unite(int a,int b){ int x=find(a); int y=find(b); if(x!=y){ parent[x]=y; } } int main(){ int L,R; cin>>L>>R; for(int i=0;i<=200000;i++){ parent[i]=i; } for(int i=L;i cnt(200001,0); for(int i=L;i<=R;i++){ cnt[find(i)]=1; } int ans=-1; for(int i=L;i<=R;i++){ ans+=cnt[i]; } cout<