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

Задача 34852. Long gcd


Two numbers are given. Find their greatest common divisor.
 
Input data 
Two natural numbers not exceeding 109 are entered.

Imprint 
Output the GCD of the entered numbers.
 

Examples
# Input Output
1 42 12 6