#include #include #include using namespace std; using mint=atcoder::modint998244353; int N,L,R; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N>>L>>R;L--; const int off=1e9; R=off-R; L=off-L; swap(L,R); mint ans=1; for(int i=1;i>l>>r;l--; r=off-r; l=off-l; swap(l,r); long long now=0; {//v+x long long lx=max(L,l+1),rx=min(R,r+1); if(lx