#include <cstdio>
#include <iostream>
#include <cmath>
#include <utility>
#include <climits>
#include <cstring>
#define eps 1e-8
#define N_MAX 30005
using std::pair;
int n,m,xa,ya,xb,yb,ans[N_MAX];
int sign(double x){
if(fabs(x) < eps)return 0;
if(x < 0)return -1;
return 1;
}
struct Point{
double x,y;
Point(double x = 0,double y = 0):x(x),y(y){}
Point operator+(Point a){
return Point(x + a.x,y + a.y);
}
Point operator-(Point a){
return Point(x - a.x,y - a.y);
}
Point operator*(double t){
return Point(x * t,y * t);
}
Point operator/(double t){
return Point(x / t,y / t);
}
bool operator==(Point a){
return x == a.x && y == a.y;
}
double lenth(){
return sqrt(x * x + y * y);
}
};
typedef Point Vector;
struct Line{
Point a,b;
Line(){}
Line(Point a,Point b){
this->a = a;
this->b = b;
}
}line[N_MAX];
double cross(Vector A,Vector B){
return A.x * B.y - B.x * A.y;
}
double dot(Vector A,Vector B){
return B.x * A.x + B.y * A.y;
}
bool isclock(Vector v1,Vector v2){
if(cross(v1,v2) < 0)return true;
return false;
}
double GetAngle(Vector v1,Vector v2){
return acos(dot(v1,v2) / v1.lenth() / v2.lenth());
}
Vector rotate(Vector v,double angle){
return Vector(v.x * cos(angle) + v.y * sin(angle),-v.x * sin(angle) + v.y * cos(angle));
}
Point GetPointForLine(Line X,Line Y){
Vector v = X.b - X.a;
Vector w = Y.b - Y.a;
Vector u = X.a - Y.a;
double base = (cross(w,u)) / (cross(v,w));
return X.a + v * base;
}
double DistanceForLine(Point P,Line X){
Vector vp = X.b - X.a,vq = P - X.a;
return fabs(cross(vp,vq))/vp.lenth();
}
double DistanceForSegment(Point P,Line X){
if(X.a == X.b)return (P - X.a).lenth();
Vector v1 = X.b - X.a,v2 = P - X.a,v3 = P - X.b;
if(sign(dot(v1,v2)) < 0) return v2.lenth();
if(sign(dot(v1,v3)) > 0) return v3.lenth();
return DistanceForLine(P,X);
}
Point GetProjectionInLine(Point P,Line X){
Vector v = X.b - X.a;
return X.a + v * (dot(v,P - X.a) / dot(v,v));
}
bool PointOnSegment(Point P,Line X){
return sign(cross(P - X.a,P - X.b)) == 0 && sign(dot(P - X.a,P - X.b)) <= 0;
}
bool SegmentIntersection(Line X,Line Y){
double c1 = cross(X.b - X.a,Y.a - Y.b),c2 = cross(X.b - X.a,Y.b - X.a);
double c3 = cross(Y.b - Y.a,X.b - Y.a),c4 = cross(Y.b - Y.a,X.a - Y.a);
return sign(c1) * sign(c2) <= 0 && sign(c3) * sign(c4) <= 0;
}
pair<Point,Point> PointWithCircleAndLine(Point o,Line X,double r){
Point o2 = o;
o2.x += X.a.y - X.b.y;
o2.y += X.b.x - X.a.x;
o2 = GetPointForLine(Line(o,o2),X);
double base = sqrt(r * r - (o2 - o).lenth() * (o2 - o).lenth());
Vector e = (X.b - X.a) / (X.b - X.a).lenth();
return std::make_pair(o2 - e * base,o2 + e * base);
}
int main(int argc,char *argv[]){
return 0;
}