#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, flag = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') flag = -1;
    ch = getchar();
  }
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return x * flag;
}
const int mod = 998244353;
;
const long long inv = 828542813;
long long exgcd(long long a, long long b, long long &x, long long &y) {
  if (!b) {
    x = 1;
    y = 0;
    return a;
  }
  long long d = exgcd(b, a % b, x, y);
  long long t = x;
  x = y;
  y = t - a / b * y;
  return t;
}
long long getinv(int a) {
  long long x, y;
  long long d = exgcd(a, mod, x, y);
  return 1LL * (x + mod) % mod;
}
int a[101];
int main() {
  int n = read();
  long long ans = 0;
  for (int i = 1; i <= 100; ++i) a[i] = getinv(i);
  for (int i = 1; i <= n; i++) {
    int x = read();
    ans = (((ans + 1) * a[x]) % mod * 100) % mod;
  }
  ans = ans % mod;
  printf("%lld\n", ans);
  return 0;
}
