#include <stdio.h>
int main() {
int P1, C1, P2, C2;
scanf("%d", &P1);
scanf("%d", &C1);
scanf("%d", &P2);
scanf("%d", &C2);
if(P1*C1==P2*C2){
printf("0");
}
else if(P1*C1>P2*C2){
printf("-1");
}
else{
printf("1");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: