Олимпиадный тренинг

Задача 18692. Long gcd


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

Запрещенные операторы:for;while;until;gcd