#include <iostream>
#include <fstream>
using namespace std;

/*********************************************
* * PROTOTYPES & STRUCT DEFINITIONS
* ********************************************/
struct point
{
  double x, y;
};
point readpoint(istream* pIN);
void writepoint(point p, ostream* pOUT);
point add(point a, point b);
point div(point P, double z);