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