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+1?1<<30:64))scanf("%d",&i);}