#include <bits/stdc++.h>
using namespace std;
long long n, t, m, l1, l2, l3, l, r, k;
long long sum, mi = 200010, ma, cnt, num, tot, res;
long long a[200010], dp[200010];
long long qpower(long long b, long long m) {
  long long ans = 1;
  while (m) {
    if (m & 1) {
      ans = ans * b % 998244353;
    }
    b = b * b % 998244353;
    m = m >> 1;
  }
  return ans;
}
signed main() {
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (long long i = 1; i <= n; i++) {
    dp[i] = ((dp[i - 1] + 1) * 100 % 998244353) *
            (qpower(a[i], 998244353 - 2) % 998244353);
    dp[i] %= 998244353;
  }
  cout << dp[n];
  return 0;
}
