Problem

1 /9


Long gcd

Problem

Two numbers are given. Find their greatest common divisor.
 
Input data: Enter two natural numbers not exceeding 10^9, (record 10^9 means "10 to the 9th power", that is, 1000000000).< /div>
Output: Print the GCD of the entered numbers

Examples
# Input Output
1 42 12 6