import sys input = sys.stdin.readline N,A,B=map(int,input().split()) mod=998244353 ANS=1 for i in range(1,N-1): ANS=ANS*i%mod if A!=B: print(ANS*((N-1)+(N-2)*(N-2))%mod) else: print(ANS*(N-1)*(N-2)%mod)