Given the task definition, example input & output, solve the new input case.
The task is to generate the correct answer for a given math problem.
Example: a multiple choice test consists of 4 questions, and each question has 5 answer choices. in how many r ways can the test be completed if every question is unanswered ?
Output: 625
Total r of 5 * 5 * 5 * 5 = 5 ^ 4 = 625 ways to answer all of them. Therefore, the answer is 625.

New input case for you: Problem: a , b and c are partners . a receives 2 / 3 of profits , b and c dividing the remainder equally . a ' s income is increased by rs . 400 when the rate to profit rises from 5 to 7 percent . find the capital of c ?
Output:
5000