MOD = 998244353 a,b,p,q = map(int,input().split()) assert b==0