#include <bits/stdc++.h>
using i64 = long long;
constexpr int P = 998244353;
int power(int a, int b) {
  int res = 1;
  for (; b > 0; a = i64(a) * a % P, b >>= 1) {
    if (b % 2 == 1) {
      res = i64(res) * a % P;
    }
  }
  return res;
}
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n;
  std::cin >> n;
  std::vector<int> p(n);
  for (int i = 0; i < n; i++) {
    std::cin >> p[i];
    p[i] = i64(p[i]) * power(100, P - 2) % P;
  }
  int r = 1, up = 1;
  for (int i = 0; i < n; i++) {
    r = i64(r) * p[i] % P;
    if (i < n - 1) {
      up = (up + r) % P;
    }
  }
  int ans = i64(up) * power(r, P - 2) % P;
  std::cout << ans << "\n";
  return 0;
}
