h,w,n,k=map(int,input().split()) A=(h*w)%n A=[A,n][A==0] print(["NO","YES"][A==k])