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

Ex 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 ?

Ex Output:
200


Ex Input:
Problem: a , b and c are partners in a business . their capitals are respectively , rs . 5000 , rs . 6000 and rs . 4000 . a gets 30 % of the total profit for managing the business . the remaining profit is divided among 3 in the ratio of their capitals . in the end of the year , the profit of a is rs . 200 more than the sum of the profits of b and c . find the total profit ?

Ex Output:
3000


Ex Input:
Problem: if ( m - 8 ) is a factor of m ^ 2 - hm - 24 , then h =

Ex Output:

5