x;main(){while(scanf("%d",&x)>0)x=1<<--x%32,printf("%d to %d\n",-x,x-1);}