Gabriel put $6000 in a 5-year CD paying 4% interest compounded monthly. After 2 years, he withdrew all his money, and as an early withdrawal penalty, he paid back all the interest he made during the first year. How much money was Gabriel left with?​