#include #include using namespace std; typedef long long i64; const int N=1e7+5; bool notPrime[N]; int prime[N/10]; void genprime() { memset(notPrime,0,sizeof(notPrime)); memset(prime,0x3f3f3f3f,sizeof(prime)); int cnt=0; notPrime[0]=notPrime[1]=true; for(int i=2,j; i*i1) ans*=3; printf("Case %d: %lld\n",t,(ans+1)>>1); } return 0; }