http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=2§ionid=1&problemid=1
import java.util.Scanner;
public class Main{
public static int fun(int a ,int b){
for(int i=1; ;i++){
if(i%a==0 && i%b==0)
return i;
}
}
public static void main(String[] args) {
int s,a,b;
Scanner in = new Scanner(System.in);
while(in.hasNext()){
a = in.nextInt();
b = in.nextInt();
s = fun(a,b);
System.out.println(s);
}
}
}