def min_day(prices):
    """Returns the day of the minimum price."""
    minindex = 0
    minimum = prices[0]
    
    for x in range(len(prices)):
        if prices[x] < minimum:
            minimum = prices[x]
            minindex = x
    return minindex