Introduction - If you have any usage issues, please Google them yourself
Description Sramoc (K, M) said the figures used in 0,1,2 ..., K-1 component of the natural number M be the smallest number divisible. Given K, M, for Sramoc (K, M). For example, K = 2, M = 7, when, Sramoc (2, 7) = 1001. The importation of the first acts of the two integers K, M satisfy 2 < = K < = 10,1 < = M < = 1000. Output output Sramoc (K, M). Sample input 2 7 sample output 1001