Rihan must buy 100 pencils from three different shops. To purchase, he has 100 rupees with him that he must spend entirely. Another condition is that he must buy at least 1 pencil from each shop.
The price at which the shops are selling those pencils:
First Shop: 5 paise
Second Shop: 1 rupees
Third Shop: 5 rupees
How many pencils should he buy from each shop to satisfy all conditions?