Test Work#1690

Test Work

1 second
64 megabytes
Very easy

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.

Input

You are given four integers ranging from to : , , , and , where A + B + C + D = 100.

Output

Output a single positive integer—the minimum possible number of students in the classes.

Examples

Example 1

Loading
Loading