#D0130. 同余方程 (Congruence Equation)
同余方程 (Congruence Equation)
Description
Find the smallest positive integer such it satisfies the congruence equation .
Input Format
The input is only one line, containing two positive integers separated by a space.
Output Format
The output is only one line and contains a positive integer , that is, the smallest positive integer solution. The input data is guaranteed to have a solution.
3 10
7
Constraints
For data, .
For data, .
For data, .