Smallest Possible Whole Number Solution

Smallest Possible Whole Number Codechef Solution Here