#include<cstdio>
int main()
{
  int a,b;
  scanf("%d%d",&a,&b);
  printf("%d %d",(a+b)/2,(a-b)/2);
}
#pragma GCC optimize ("Ofast")
#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read()
{
	bool flag=1;
	int x=0;
	char c=getchar();
	while(c<'0'||c>'9')
	{
		if(c=='-')
			flag=0;
		c=getchar();
	}
	while(c>='0'&&c<='9')
	{
		x=(x<<1)+(x<<3)+c-'0';
		c=getchar();
	}
	return (flag?x:~(x-1));
}
int n;
double d,h,ans;
signed main()
{
	n=read();
	cin>>d>>h;
	for(int i=1;i<=n;i++)
	{
		double x,y;
		cin>>x>>y;
		ans=max(ans,y-(h-y)/(d-x)*x);	
	}
	cout<<ans;
	return 0;
}
