#include <bits/stdc++.h>
using namespace std;
const int mod = 998244353;
long long powmod(long long a, long long b) {
  long long res = 1;
  for (; b; b >>= 1) {
    if (b & 1) (res *= a) %= mod;
    (a *= a) %= mod;
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  long long ans = 0, now = 1, x = powmod(100, mod - 2);
  for (int i = 0; i < n; ++i) {
    (ans += now) %= mod;
    (now *= a[i]) %= mod;
    (now *= x) %= mod;
  }
  (ans *= powmod(now, mod - 2)) %= mod;
  cout << ans << '\n';
  return 0;
}
