H,W,N,K=(int(i) for i in input(). split ()) H*=W H%=N if H==K: print ("YES") else: print ("NO")