You will be given two integers and where . You have to tell that how many numbers are there from to that is co-prime to:
The only line of input contains two integers and (). It is guaranteed that and are relatively prime.
Output three numbers as mentioned above.
Input | Output |
---|---|
2 3 | 1 2 2 |
Input | Output |
---|---|
5 7 | 4 6 24 |
Please note that for relatively prime numbers and , .