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: find the area of trapezium whose parallel sides are 20 cm and 18 cm long , and the distance between them is 20 cm ?
Example Output: 380 cm 2

Example Input: Problem: a train of length 250 m crosses a bridge of length 150 m in 20 seconds . what is the speed of train ?
Example Output:
7