Alex invested $500 in a new tech startup. Over the first year, his investment grew by 40%. However, in the second year, the value of the investment dropped by 15%. In the third year, the investment grew again by 20%. What is the value of Alex's investment at the end of the third year? Let's think step by step and output the final answer within \boxed{}.
user