#include <bits/stdc++.h>
long long v[300010], a[100010], n, m, s, f[300010];
int main() {
  scanf("%lld", &n);
  for (long long i = 1; i <= n; i++) scanf("%lld", &a[i]), m += a[i];
  v[1] = 1;
  for (long long i = 2; i <= 300000; i++)
    v[i] = 1ll * (998244353 - 998244353 / i) * v[998244353 % i] % 998244353;
  for (long long i = 2; i <= m; i++)
    f[i] = ((((m * (n - 1ll) % 998244353) - ((m - i + 1ll) * 1ll * (n - 2ll)) +
              998244353) %
             998244353 * v[m] % 998244353 * v[n - 1] % 998244353 * f[i - 1] %
             998244353) -
            (i - 1ll) * v[m] % 998244353 * (1ll + f[i - 2]) % 998244353 +
            998244353) %
           998244353 * m % 998244353 * (n - 1ll) % 998244353 * v[m - i + 1] %
           998244353;
  for (long long i = 1; i <= n; i++) s = (s + f[a[i]] + 998244353) % 998244353;
  printf("%lld\n", ((s - f[m]) + 998244353) % 998244353);
}
