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

class Point{
    double x, y;
    public:
    Point(double x=0, double y=0){
        this->x=x;
        this->y=y;
    }
    
    float operator-(const Point& p2){
        return sqrt((x-p2.x)*(x-p2.x)+(y-p2.y)*(y-p2.y));
    }
    
};


int main()
{
    Point p1(5, 4), p2(3.5, -2.5);
    float distance=p1-p2;
    cout<<distance;

    

    return 0;
}