You are on page 1of 2

Largest dividing

Write a program that will check a number , that would be obtained from a set of two numbers
,that is the largest number dividing each of them of two numbers, is equals to one of the two
initial numbers .
Input Format
Two line containing 2 integers A and B separately.
Constraints
1<=A<=B<=10^5
Output Format
If equal then print
-Number is from the initial numbers.
If not equals.
-False
Sample Input 0
19

57

Sample Output 0
-Number is from the initial numbers.
Explanation 0
The largest number dividing of 19 and 57, is 19 & it is from one of initial numbers.
Test Input 1
47

423

Test Output 1
Number is from the initial numbers.
Test Input 2
13

15

Test Output 2
False

You might also like