#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void read(T &num) {
  num = 0;
  bool w = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') w = 0;
    c = getchar();
  }
  while (isdigit(c)) {
    num = num * 10 + c - '0';
    ;
    c = getchar();
  }
  num = w ? num : -num;
}
const int N = 2e5 + 10, MOD = 998244353;
int p[N], F[N], n;
inline int power(int a, int b) {
  int c = 1;
  for (; b; b >>= 1, a = 1ll * a * a % MOD)
    if (b & 1) c = 1ll * c * a % MOD;
  return c;
}
signed main() {
  read(n);
  for (int i = 1; i <= n; i++) read(p[i]);
  for (int i = 1; i <= n; i++) {
    F[i + 1] = 100ll * power(p[i], MOD - 2) % MOD * F[i] % MOD;
    F[i + 1] += 100ll * power(p[i], MOD - 2) % MOD;
    if (F[i + 1] >= MOD) F[i + 1] -= MOD;
  }
  cout << F[n + 1] << endl;
  return 0;
}
