struct pt { double x, y; };