#include <iostream>
#include <cstdio>
#include <cmath>
#include <stack>
#include <vector>
#include <algorithm>
#include <queue>
#include <list>
#include <map>
#include <string>
#include <cstdlib>
#include <iomanip>
using namespace std;
int main(){
long long x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
y2=-y2;
long long cur1=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
printf("%lld.00000000000000000000", cur1);
cin.get();
cin.get();
return 0;
};
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxzdGFjaz4KI2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPHF1ZXVlPgojaW5jbHVkZSA8bGlzdD4KI2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGNzdGRsaWI+CiNpbmNsdWRlIDxpb21hbmlwPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CiBsb25nIGxvbmcgeDEseTEseDIseTI7CiBjaW4+PngxPj55MT4+eDI+PnkyOwogICAgeTI9LXkyOwogICAgCiAgICBsb25nIGxvbmcgY3VyMT0oeDIteDEpKih4Mi14MSkrKHkyLXkxKSooeTIteTEpOwogICAgcHJpbnRmKCIlbGxkLjAwMDAwMDAwMDAwMDAwMDAwMDAwIiwgY3VyMSk7CiAgICBjaW4uZ2V0KCk7CiAgICBjaW4uZ2V0KCk7CiAgICByZXR1cm4gMDsKfTsK