#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
long long exgcd(long long a, long long b, long long& x, long long& y) {
  if (b == 0) {
    x = 1, y = 0;
    return a;
  }
  long long ret = exgcd(b, a % b, y, x);
  y -= a / b * x;
  return ret;
}
long long getInv(long long a, long long mod) {
  long long x, y;
  long long d = exgcd(a, mod, x, y);
  return d == 1 ? (x % mod + mod) % mod : -1;
}
int main() {
  long long n = read();
  long long mod = 998244353;
  long long ni_100 = getInv(100, mod);
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    long long tem = read();
    long long p = tem * ni_100 % mod;
    p = getInv(p, mod);
    ans = (ans + 1) * p % mod;
  }
  cout << ans << endl;
  return 0;
}
