#include <bits/stdc++.h>
using namespace std;
long long mod = 998244353;
long long expo(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b % 2 == 1) res = (res * a) % mod;
    a = (a * a) % mod;
    b /= 2;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  long long p[n];
  for (int i = 0; i < n; i++) cin >> p[i];
  long long prod = 1, sum = 0;
  for (int i = n - 1; i >= 0; i--) {
    long long term = (100 * expo(p[i], mod - 2)) % mod;
    prod *= term;
    prod %= mod;
    sum += prod;
    sum %= mod;
  }
  cout << sum;
}
