n,a,b = map(int,input().split()) mod = 998244353; f = [1]*(n+1) for i in range(n): f[i+1] = f[i]*(i+1)%mod print((f[n]-2*f[n-1]+f[n-2]*(a!=b))%mod)