A department store is having as special sale. On monday, the regular price of a dress is marked down by 25%. On Tuesday, the dress is marked by 20% of this current price. On Wednesday, the dress is marked down by 25%of its current price. After all the discounts, the final price is $27. What was the regular price of the dress?