#include #define INF 2000000000000000000 #define ll long long using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; ll ans = f - e + a * (pow(c / (-2 * a), 2) + pow(d / (-2 * a), 2)); cout << pow(ans, 0.5) << "\n"; }