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

class Ponto {
public:
    Ponto(int x1, int y1) : x(x1), y(y1) {}

    double calcular_distancia(Ponto &outro) {
        int a = x - outro.x;
        int b = y - outro.y;
        return sqrt(a * a + b * b);
    }

    int inline get_x() {
        return x;
    }

    int inline get_y() {
        return y;
    }
private:
    int x;
    int y;
};

int main() {
    Ponto p1(2, -3);
    Ponto p2(4, 5);
    double distancia = p1.calcular_distancia(p2);
    cout << distancia;
}