#include <cstdio>#include <iostream>usingnamespacestd;
voidsolve(int);
intmain()
{
#ifndef ONLINE_JUDGEfreopen("e:\\uva_in.txt", "r", stdin);
#endifintt;
cin>>t;
for (inti=1; i<=t; i++) {
cout<<"Case "<<i<<":"<<endl;
intr;
cin>>r;
solve(r);
}
return0;
}
voidsolve(intr)
{
doublelength=r*5;
doublewidth=length*3/5;
cout.precision(0);
cout<<fixed<<-length*9/20<<" "<<fixed<<width/2<<endl;
cout<<fixed<<length*11/20<<" "<<fixed<<width/2<<endl;
cout<<fixed<<length*11/20<<" "<<fixed<<-width/2<<endl;
cout<<fixed<<-length*9/20<<" "<<fixed<<-width/2<<endl;
}