import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = a + b; long gcdA = gcd(a, c); long gcdB = gcd(b, c); long ans = gcdA / gcd(gcdA, gcdB) * gcdB; System.out.println(ans); } static long gcd(long a, long b) { if (a % b == 0) { return b; } else { return gcd(b, a % b); } } }