#include <bits/stdc++.h>
using namespace std;
long long MOD = 998244353;
long long fpow(long long base, long long exp) {
  long long result = 1;
  while (exp) {
    if (exp & 1) result = (result * base) % MOD;
    exp >>= 1;
    base = (base * base) % MOD;
  }
  return result;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  long long ans = 0;
  for (int i = 0, ThxDem = n; i < ThxDem; ++i) {
    long long x;
    cin >> x;
    long long val = 100ll * fpow(x, MOD - 2) % MOD;
    ans = (ans + val + (val - 1 + MOD) * ans) % MOD;
  }
  cout << ans << "\n";
}
