Solution for 10830 and 100