//判断大小那里要留意留意
//void Jude(Cube b)
{
int temp1=this->lengththis_>width;
int temp2 =lengthwidth;
if(temp1>temp2)
{
}
else
{
}
#include<bits/stdc++.h>
using namespace std;
class Cube{
private:
int length;
int width;
public:
void setlength(int l)
{
length=l;
}
void setwidth(int w)
{
width=w;
}
void Juge(Cube b)
{
int temp1 =this->length*this->width ;
int temp2 =b.length *b.width ;
if(temp1>temp2)
{
cout<<"1"<<endl;
}
else
{
cout<<"0"<<endl;
}
}
};
int main()
{
Cube c,b;
int x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
c.setlength(x1);
c.setwidth(y1);
b.setlength(x2);
b.setwidth(y2);
c.Juge(b);
}