#include <stdlib.h>
int main()
{
int multi=1, val;
while(1) //ciclo infinito
{
scanf("%d",&val
); // ao inserir o 0 if(val==0) // val==0 -> true
break; // sai fora do ciclo
multi= multi*val; //multi NÃO multiplica por 0
}
return 0;
}
ICNpbmNsdWRlIDxzdGRsaWIuaD4KCiAgICBpbnQgbWFpbigpCiAgICB7CgogICAgaW50IG11bHRpPTEsIHZhbDsKICB3aGlsZSgxKSAvL2NpY2xvIGluZmluaXRvCiAgICB7CiAgICBwcmludGYoIkRpZ2l0ZSB1bSB2YWxvciIpOwogICAgc2NhbmYoIiVkIiwmdmFsKTsgLy8gYW8gaW5zZXJpciBvIDAKICAgIGlmKHZhbD09MCkgLy8gdmFsPT0wIC0+IHRydWUKICAgICAgICBicmVhazsgLy8gc2FpIGZvcmEgZG8gY2ljbG8KICAgIG11bHRpPSBtdWx0aSp2YWw7IC8vbXVsdGkgTsODTyBtdWx0aXBsaWNhIHBvciAwCiAgICB9CiAgICBwcmludGYoIiVkIiwgbXVsdGkpOwogICAgcmV0dXJuIDA7CgogICAgfQo=