Using a computational method to find the solution to the following 2014 Purple Comet problem I had to do for homework: Start with a three-digit positive integer A. Obtain B by interchanging the two leftmost digits of A. Obtain C by doubling B. Obtain D by subtracting 500 from C. Given that A+B+C+D=2014, find A. Before you accuse me of cheating, let me tell you I DID NOT write down the answer in the homework.
Find solution of 2014 Purple Comet High School problem 16. Also I DID NOT just make the cat say the solution!