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

Задача 18691. Short GCD


Two numbers are given. Find their greatest common divisor.
 
Input 
Two natural numbers not exceeding 30000 are entered.
 
Imprint 
Output the GCD of the entered numbers.
 
 
Examples
# Input Output
1 42 12 6
 

Запрещенные операторы:gcd