#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef long double LD; typedef vector VI; typedef pair PII; const LD eps=1e-9; const LD PI=atan2((LD)0,(LD)-1); const LL MOD=1000000007; const int INF=1<<30; const int ARR_INF=1<<6; const int MAXN=100005; int main() { int T; double n,a,r; scanf("%d",&T); for(int t=1;t<=T;t++) { cin>>n>>a>>r; double x=a/(2.0*tan(PI/n)); printf("Case #%d:\n",t); if(x