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

Input: Consider Input: Problem: a cycle is bought for rs . 900 and sold for rs . 1170 , find the gain percent ?

Output: 30 %


Input: Consider Input: Problem: after decreasing 24 % in the price of an article costs rs . 684 . find the actual cost of an article ?

Output: 900


Input: Consider Input: Problem: a certain number of horses and an equal number of men are going somewhere . half of the owners are on their horses ' back while the remaining ones are walking along leading their horses . if the number of legs walking on the ground is 40 , how many horses are there ?


Output: 8