d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d+=!!~i<<30))scanf("%d",&i);}