Young treasure hunter Roma has completed a course in "treasure hunting" and has now set off for a summer internship. The internship takes place near the village of "Stone Dawns" and lasts exactly days. Each day, Roma finds coins buried in the ground. Thus, by the end of the first day he will have coins, by the end of the second day — 2 \cdot a, and by the end of the internship Roma will have accumulated b \cdot a coins.
If at the end of a day the supervising instructor notices that the number of coins Roma has is divisible by , Roma may take a pie from the shelf and eat it immediately. Help Roma determine how many pies he will eat during the entire internship.
Two integers and b~(1 \le a, b \le 10^9).
Print the number of pies that Roma will eat during the internship.
Example 1