P1, P2, Q1, Q2, T = map(int, input().split()) def inverse(n, d): return n * pow(d, -1, MOD) % MOD MOD = 998244353 spawn = inverse(P1, P2) dead = inverse(Q1, Q2) D = [1] for _ in range(T): D.append(D[-1]*dead%MOD) dp = [[0]*(T+1) for _ in range(T+1)] dp[0][0] = 1 for i in range(T): for j in range(T+1): if dp[i][j] == 0: continue dp[i+1][i+1] += dp[i][j]*spawn%MOD dp[i+1][i+1] %= MOD dp[i+1][j] += dp[i][j]*D[i+1-j]%MOD dp[i+1][j] %= MOD print(sum(dp[-1])%MOD)