#1340. 区间最大公约数

区间最大公约数

Background

Special for beginners, ^_^

Description

给定两个正整数 LLRR ,你可以任意选择两个正整数 xxyy 且满足 Lx<yR3×1012L\leq x < y \leq R \leq 3\times10^{12} ,求 max(GCD(x,y))max(GCD(x, y))

Format

Input

每行(不超过 5×1055\times10^5 行)两个正整数 LLRR

Output

每行输出一个答案。

Samples

23 29
32678 65536
32768 32769
4
32678
1

Limitation

1s, 1024KiB for each test case.