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.
1 2 2
4 6 24
Please note that for relatively prime numbers and , .
Login to submit
|National Girls' Programming Contest 2019 Preliminary Mock|
|Long Practice Sessions on ISCPC 2019 Problems- 1|
|National Girls' Programming Contest 2021 Mock|
|SCB-PA Inter School and College Programming Contest 2019 - Sylhet Regional Selection|
|Replay of SCB-PA Inter School and College Programming Contest 2019 - Sylhet Regional Selection|