#include double fun1(double n) { return (46-38.0/n)/(19-11.0/n); } double fun2(double n) { return 1+(n-2)*(19.0/27.0); } int main() { int aaa; int T,k=0; double n; scanf("%d",&T); while(T--) { scanf("%lf",&n); printf("Case #%d:\n",++k); printf("%.6lf %.6lf\n",fun2(n),fun1(n)); } }