Ahn picks a three-digit integer, subtracts it from 500, then triples the result. What is the largest number Ahn can get?