from typing import Dict, Iterable, Set def inputs(type_=int): ins = input().split() if isinstance(type_, Iterable): return [t(x) for t, x in zip(type_, ins)] else: return list(map(type_, ins)) n, a, b = inputs() M = 2 * 10**5 + 10 facs = [1] * M mod = 998244353 for i in range(1, M): facs[i] = facs[i - 1] * i facs[i] %= mod if a != b: res = facs[n - 1] + (n - 2) * (n - 2) * facs[n - 2] else: res = (n - 1) * (n - 2) * facs[n - 2] res %= mod print(res)