void main(void){ int m=1,i; int num; scanf("&d",num); i=num%10; while((num=num/10)>0) { m=m*i; i=num%10; } printf("&d",m);}