Given are integers s, t, and u.
Let a, b, and c be distinct complex numbers that satisfy the following conditions:
It is guaranteed that such a, b, and c exist for the given s, t, and u.
Given positive integers n and m, calculate the ratio
(a−b)(b−c)(c−a)an(bm−cm)+bn(cm−am)+cn(am−bm)
modulo 998,244,353.
The first line of input contains two integers n and m (1≤n,m≤1018).
The second line contains three integers s, t and u (0≤s,t,u<998,244,353).
It is guaranteed that the distinct complex numbers a, b, and c from the statement exist for the given s, t, and u.
It can be shown that the answer can be represented as a rational number p/q where p and q are integers, (p,q)=1, q>0 and q is not divisible by 998,244,353.