The task is to generate the correct answer for a given math problem.

Example Input: Problem: a “ palindromic integer ” is an integer that remains the same when its digits are reversed . so , for example , 43334 and 516615 are both examples of palindromic integers . how many 6 - digit palindromic integers are both even and greater than 500000 ?
Example Output: 200

Example Input: Problem: from a pack of cards , two cards are drawn one after the other , with replacement . what is the probability that the first card is a black card and the second card is a king ?
Example Output: 1 / 26

Example Input: Problem: a person ' s present age is two - fifth of the age of his mother . after 8 years , he will be one - half of the age of his mother . how old is the mother at present
Example Output:
40