Function return min number