class Solution:
    def minNumberInRotateArray(self , nums: List[int]) -> int:
        # write code here
        return sorted(nums)[0]