The eighth-grade classes took a test, and the results were as follows: exactly of the students received a grade of , exactly received a grade of , exactly received a grade of , and the remaining received a grade of . Determine the minimum possible number of students in the eighth-grade classes such that these percentages are possible.
You are given four integers ranging from to : , , , and , where A + B + C + D = 100.
Output a single positive integer—the minimum possible number of students in the classes.
Example 1