1169: 最大公约数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:206 Solved:144

Description

给出两个正整数 $n$ 和 $x$,求出最大公约数。

Input

输入正整数 $n$ 和 $x$。

Output

输出最大公约数。

Sample Input Copy

20 15

Sample Output Copy

5

HINT

$1 \le n,x \le  1000$

Source/Category