text: #define PROBLEM "https://judge.yosupo.jp/problem/inv_of_formal_power_series"
  
  #include "../../template/template.hpp"
  #include "../../modint/montgomery-modint.hpp"
  #include "../../fps/arbitrary-fps.hpp"
  using mint = LazyMontgomeryModInt<998244353>;
  using fps = FormalPowerSeries<mint>;
  
  using namespace Nyaan; void Nyaan::solve() {
    ini(N);
    fps a(N);
    in(a);
    out(a.inv());
  }