# hdu 3011

/*

*/

//  Created by Chenhongwei on 2016-04-15 Friday 00:54

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <queue>
#include <cmath>
#include <map>
#include <set>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#define root 1,n,1
#define lson l,m,rt<<1
#define rson m+1,r,rt<<1|1
using namespace std;
const int inf=1e9;
const int mod=1e9+7;
const int maxn=1e5+100;
typedef long long ll;
typedef unsigned long long ull;
int main()
{
//ios::sync_with_stdio(false);
//freopen("in.txt","r",stdin);
//freopen("out.txt","w",stdout);
double r,a,b,c,t;
double x1,x2;
while(scanf("%lf%lf",&r,&a)!=EOF)
{
t=-1.0;
b=r-a;
c=r*r*r/a/2-2*r*r+a*r;
if(b*b-4*c<0)
{
printf("Oh, my god!\n");
continue;
}
x1=(-b+sqrt(b*b-4*c))/2;
x2=(-b-sqrt(b*b-4*c))/2;
if(x1>=0&&x1<=r)
t=x1;
else if(x2>=0&&x2<=r)
t=x2;
if(t>=0&&t<=r)
printf("%.2lf\n",t);
else
printf("Oh, my god!\n");
}
return 0;
}

• 广告
• 抄袭
• 版权
• 政治
• 色情
• 无意义
• 其他

120