#include <bits/stdc++.h>
using namespace std;

// macros
#define overload_rep(_1, _2 ,_3 ,name, ...) name
#define re_p(i, n) for(int i = 0; i < (n); ++i)
#define r_ep(i, x, y) for(int i = (x); i <= (y); ++i)
#define rep(...) overload_rep(__VA_ARGS__, r_ep, re_p,)(__VA_ARGS__)
#define all(a) a.begin(), a.end()
#ifndef STOP_DEBUG
#define debug(...)\
    do { cerr << boolalpha << "[" << #__VA_ARGS__ << "]:";\
    debug_cerr(__VA_ARGS__); cerr << noboolalpha; } while (0)
#else
#define debug(...)
#endif

// functions
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
void debug_cerr(){ cerr << '\n'; }
template<class Head, class... Tail>
void debug_cerr(Head head, Tail... tail){
    cerr << ' ' << head;
    debug_cerr(tail...);
}

// cin/cout setup
struct IoSetup{
    IoSetup(){
        cin.tie(nullptr);
        ios::sync_with_stdio(false);
        cout << fixed << setprecision(6);
    }
} iosetup;

// Let's get AC!

template<const int_fast64_t mod = 1000000007>
struct ModInt{
private: using ll = int_fast64_t;
public: ll x;
    constexpr ModInt(ll t = 0) noexcept : x((t %= mod) < 0 ? t + mod : t) {}
    constexpr friend istream& operator >> (istream& s, ModInt& m) noexcept {
        s >> m.x; m.x %= mod; if(m.x < 0)m.x += mod; return s;
    }
    constexpr friend ostream& operator << (ostream& s, ModInt m) noexcept {
        return s << m.x;
    }
    constexpr ModInt operator + (const ModInt m) noexcept { return ModInt(*this) += m; }
    constexpr ModInt& operator += (const ModInt m) noexcept {
        if((x += m.x) >= mod)x -= mod; return *this;
    }
    constexpr ModInt operator - (const ModInt m) noexcept { return ModInt(*this) -= m; }
    constexpr ModInt& operator -= (const ModInt m) noexcept {
        if((x += mod - m.x) >= mod)x -= mod; return *this;
    }
    constexpr ModInt operator * (const ModInt m) noexcept { return ModInt(*this) *= m; }
    constexpr ModInt& operator *= (const ModInt m) noexcept {
        x = x * m.x % mod; return *this;
    }
    constexpr ModInt operator / (const ModInt m) noexcept { return ModInt(*this) /= m; }
    constexpr ModInt& operator /= (const ModInt m) noexcept {
       
    }
    constexpr ModInt inv() noexcept {
        ll a = x, b = mod, u = 1, v = 0, t = 0;
        while(b){ t = a / b; a -= t * b; swap(a, b); u -= t * v; swap(u, v); }
        return ModInt(u);
    }
    constexpr ModInt pow(ll p) noexcept {
        ModInt res(1), mult(*this);
        for(; p; p >>= 1){ if(p & 1)res *= mult; mult *= mult; }
        return res;
    }
};

template<const int_fast64_t mod = 1000000007>
struct ModFact{
private:
    using mint = ModInt<mod>;
    vector<mint> fact, ifact;
public:
    constexpr ModFact(const int sz = 200000) noexcept : fact(sz + 1), ifact(sz + 1) {
        fact[0] = mint(1);
        for(int i = 1; i <= sz; ++i)fact[i] = fact[i - 1] * mint(i);
        ifact[sz] = fact[sz].inv();
        for(int i = sz; i > 0; --i)ifact[i - 1] = ifact[i] * mint(i);
    }
    constexpr mint operator [] (const int id) noexcept { return fact[id]; }
    constexpr mint operator () (const int n, const int r) noexcept {
        return fact[n] * ifact[n - r] * ifact[r];
    }
    constexpr mint nPr(const int n, const int r) noexcept {
        return fact[n] * ifact[r];
    }
};

using mint = ModInt<>;
using mfact = ModFact<>;

int main(){

    int B, W;
    cin >> B >> W;

    mint edB(1), edW(1), now(1);
    mfact fac(B + W);
    rep(step, B + W){
        mint ans = now;
        if(step >= B)ans -= edB;
        if(step >= W)ans += edW;
        now *= mint(2);
        cout << ans * now.inv() << '\n';
        if(step >= B){
            edB *= mint(2);
            edB += fac(step, B - 1);
        }
        if(step >= W){
            edW *= mint(2);
            edW += fac(step, W - 1);
        }
    }

}

Measured memory_bytes: 5376