#include <bits/stdc++.h>
using namespace std;
int n, i, sol;
int v[200005];
int mult(int x, int e) {
  if (e == 0) {
    return 1;
  } else {
    int a = mult(x, e / 2);
    if (e % 2 == 0) {
      return a * 1LL * a % 998244353;
    } else {
      return a * 1LL * a % 998244353 * x % 998244353;
    }
  }
}
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> v[i];
    v[i] = 100LL * mult(v[i], 998244353 - 2) % 998244353;
  }
  for (i = 1; i <= n; i++) {
    sol = (sol + 1) * 1LL * v[i] % 998244353;
  }
  cout << sol;
}
