#ENGLISHP13. Same Remainder

Same Remainder

Description

Given A and B. Find the smallest X that X is greater than 1 and A modulo X equals to B modulo X.

Input Format

Two positive integers A and B (A,B <= 10000).

Output Format

One integer X.

17 26
3