a;main(b){long c,d;scanf("%d%d%ld%ld",&a,&b,&c,&d);puts((a*b-d)%c?"NO":"YES");}