#include using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define fi first #define se second #define pb push_back #define sz(a) (int)a.size() #define vec(...) vector<__VA_ARGS__> #define _3ulnVOy ios::sync_with_stdio(0),cin.tie(0) typedef long long ll; using pii=pair; using vi=vector; void print(){cout<<"\n";} template void print(const h&v,const t&...u){cout< struct modint{ ll x; // typedef long long ll; modint(ll x=0):x((x%mod+mod)%mod){} modint operator-()const{return modint(-x);} modint& operator+=(const modint a){if((x+=a.x)>=mod) x-=mod; return *this;} modint& operator-=(const modint a){if((x+=mod-a.x)>=mod) x-=mod; return *this;} modint& operator*=(const modint a){(x*=a.x)%=mod; return *this;} modint operator+(const modint a)const{modint res(*this); return res+=a;} modint operator-(const modint a)const{modint res(*this); return res-=a;} modint operator*(const modint a)const{modint res(*this); return res*=a;} modint pow(ll n)const{ modint res=1,x(*this); while(n){ if(n&1)res*=x; x*=x; n>>=1; } return res; } modint inv()const{return pow(mod-2);} }; using mint=modint<998244353>; signed main(){ _3ulnVOy; int n,l,r; cin>>n>>l>>r; if(l>r) swap(l,r); vec(mint) faf(n+1); faf[1]=1; rng(i,2,n+1){ faf[i]=faf[i-1]; if(i>3) faf[i]+=faf[i-3]; } mint ans=0; if(l==1){ ans=faf[r-1+(r==n)]; }else{ ans=faf[r-l-1+(r==n)]; } print(ans.x); // return 0; }