#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,a,n) for(int i=a; i=n; i--) #define pb(a) push_back(a) #define fr first #define sc second #define INF 2000000000 #define X real() #define Y imag() #define EPS (1e-10) #define EQ(a,b) (abs((a) - (b)) < EPS) #define EQV(a,b) ( EQ((a).X, (b).X) && EQ((a).Y, (b).Y) ) #define LE(n, m) ((n) < (m) + EPS) #define LEQ(n, m) ((n) <= (m) + EPS) #define GE(n, m) ((n) + EPS > (m)) #define GEQ(n, m) ((n) + EPS >= (m)) typedef vector VI; typedef vector MAT; typedef pair pii; typedef long long int ll; typedef complex P; typedef pair L; typedef pair C; int dy[]={0, 0, 1, -1}; int dx[]={1, -1, 0, 0}; int const MOD = 1000000007; namespace std { bool operator<(const P& a, const P& b) { return a.X != b.X ? a.X < b.X : a.Y < b.Y; } } int main() { double a, b, c; cin >> a >> b; if(a > b) swap(a, b); c = sqrt(b * b - a * a); cout << fixed << setprecision(10) << c << endl; return 0; }