def f(number):
	s = 1
	for x in str(number):
		if x != '0':
			s *= int(x)
	return s
	
	
print(f(123))
print(f(100101))