Given two integers
Input Specification
The input will contain
Output Specification
Output the number of distinct values when considered modulo
Sample Input 1
Copy
1
2
3
4
5
6
7
8
9
10
Sample Output 1
Copy
10
Explanation for Sample Output 1
The numbers modulo
Sample Input 2
Copy
42
84
252
420
840
126
42
84
420
126
Sample Output 2
Copy
1
Explanation for Sample Output 2
All numbers modulo
Sample Input 3
Copy
39
40
41
42
43
44
82
83
84
85
Sample Output 3
Copy
6
Explanation for Sample Output 3
The numbers modulo
Comments