#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
#include <cstdio>
#include <queue>
#include <set>
#include <map>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;


int main()
{
double w,h,x,y,z,k;
scanf("%lf%lf%lf%lf",&w,&h,&x,&y);
double sum=0;
int t=0;
sum=w*h/2;
z=w/h;
if(y>x)
{
x=w-x;
}
k=x/y;
if(z==k)
t=1;
printf("%.6f %d\n",sum,t);




}
