#include <bits/stdc++.h>
using namespace std;
class DebugStream {
} LOG;
template <typename T>
DebugStream &operator<<(DebugStream &s, const T &) {
  return s;
}
mt19937 rnd(time(NULL));
const int maxN = 2e5 + 9, maxV = 1e6 + 9, MOD = 998244353, SQ = 335, lg = 20,
          bs = 29;
int n, q;
long long arr[maxN], multip[maxN], fctr[maxN], acuf[maxN], esca[maxN],
    acue[maxN];
set<int> mys;
long long fastPow(long long a, long long b) {
  long long ret = 1;
  while (b) {
    if (b & 1) ret = ret * a % MOD;
    b >>= 1, a = a * a % MOD;
  }
  return ret;
}
long long calc(int u) {
  int nxt = *mys.upper_bound(u);
  long long consta = (MOD + acue[nxt - 1] - acue[u - 1]) % MOD;
  consta = consta * fastPow(multip[u - 1], MOD - 2) % MOD;
  long long trr = (MOD + acuf[nxt - 1] - acuf[u - 1]) % MOD;
  trr = trr * fastPow(multip[u - 1], MOD - 2) % MOD;
  long long tored = trr * (u - 1) % MOD;
  consta = (MOD + consta - tored) % MOD;
  long long ret = consta * fastPow(MOD + 1 - trr, MOD - 2) % MOD;
  long long cnd = nxt - u;
  ret = (ret + cnd) % MOD;
  return ret;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long inv100 = fastPow(100, MOD - 2);
  cin >> n >> q;
  multip[0] = 1;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
    arr[i] = arr[i] * inv100 % MOD;
    multip[i] = multip[i - 1] * arr[i] % MOD;
    fctr[i] = (MOD + 1 - arr[i]) * multip[i - 1] % MOD;
    esca[i] = fctr[i] * i % MOD;
  }
  for (int i = 1; i <= n; i++) {
    acuf[i] = (acuf[i - 1] + fctr[i]) % MOD;
    acue[i] = (acue[i - 1] + esca[i]) % MOD;
  }
  mys.insert(1);
  mys.insert(n + 1);
  long long ans = calc(1);
  while (q--) {
    int u;
    cin >> u;
    auto iter = mys.lower_bound(u);
    iter--;
    int valor = *iter;
    if (mys.find(u) == mys.end()) {
      ans = (MOD + ans - calc(valor)) % MOD;
      mys.insert(u);
      ans = (calc(valor) + ans) % MOD;
      ans = (ans + calc(u)) % MOD;
    } else {
      ans = (MOD + ans - calc(u)) % MOD;
      ans = (MOD + ans - calc(valor)) % MOD;
      mys.erase(u);
      ans = (ans + calc(valor)) % MOD;
    }
    cout << ans << '\n';
  }
}
