#include <stdio.h>
main(){
int entrada,teste=1,saida,base,i,aux;
scanf("%d",&entrada);
while(entrada != -1){
base = 2;
aux = 1;
for(i=1;i<=entrada;i++){
base += aux;
aux *= 2;
}
printf("Teste %d\n",teste);
printf("%d\n",base*base);
teste++;
scanf("%d",&entrada);
}
}