MOD = 998244353 p1,p2,q1,q2, t = map(int, input().split()) p = p1 * pow(p2, MOD-2, MOD) % MOD q = q1 * pow(q2, MOD-2, MOD) % MOD dp = [0 for i in range(t+1)] dp[0] = 1 qlist = [1] temp = q for i in range(t): qlist.append(temp) temp *= q temp %= MOD ans = 0 for i in range(t): cell = dp[i] for j in range(i+1, t+1): dp[j] += cell * p % MOD dp[j] %= MOD cell *= qlist[j-i] cell %= MOD ans += cell ans %= MOD ans += dp[t] ans %= MOD # print(dp) print(ans)