#P200. 【例33.3】 凑数

【例33.3】 凑数

Description

Given two positive integers xx and yy, what is the largest positive integer within 10001000 that is neither a multiple of xx nor a multiple of yy?

Input Format

Two integers xx and yy (2x,y10002≤x,y≤1000).

Output Format

A positive integer representing the answer.

Sample

2 3
997