#include <bits/stdc++.h>
using namespace std;
const int Q = 998244353;
pair<int, int> egcd(pair<int, int> x) {
  if (x.second == 0) return {1, 0};
  int t = x.first / x.second;
  pair<int, int> ret = egcd({x.second, x.first - t * x.second});
  return {ret.second, ret.first - t * ret.second};
}
int inv(int x) {
  pair<int, int> ret = egcd({Q, x});
  return ret.second < 0 ? ret.second + Q : ret.second;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  int inv100 = inv(100);
  int arr[n];
  for (auto &i : arr) cin >> i, i = (long long)i * inv100 % Q;
  int A = 1;
  for (auto i : arr) A = (long long)A * i % Q;
  A = inv(A);
  arr[n - 1] = 0;
  int S = 0;
  for (int i = 0; i < n; ++i) {
    S = (S + ((long long)A * (Q - arr[i] + 1) % Q * (i + 1) % Q)) % Q;
    A = (long long)A * arr[i] % Q;
  }
  cout << S;
  return 0;
}
