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

Ex Input:
Problem: a , b and c rents a pasture for rs . 730 . a put in 12 horses for 8 months , b 16 horses for 9 months and 18 horses for 6 months . how much should c pay ?

Ex Output:
22


Ex Input:
Problem: there are 750 male and female participants in a meeting . half the female participants and one - quarterof the male participants are democrats . one - third of all the participants are democrats . how many of the democrats are female ?

Ex Output:
125


Ex Input:
Problem: on her annual road trip to visit her family in seal beach , california , traci stopped to rest after she traveled 1 ⁄ 2 of the total distance and again after she traveled 1 ⁄ 4 of the distance remaining between her first stop and her destination . she then drove the remaining 200 miles and arrived safely at her destination . what was the total distance , in miles , from traci ’ s starting point to seal beach ?

Ex Output:

800