using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yuki_442 { class Program { static void Main(string[] args) { var t = scan; var x = t[0]; var y = t[1]; var gcd1= gcd(x+y, x); var gcd2 = gcd((x + y) / gcd1, y); Console.WriteLine(gcd1 * gcd2); } static long gcd(long x, long y) { if (x > y) { long t = x; x = y; y = t; } while (y > 0) { long r = x % y; x = y; y = r; } return x; } static long[] scan { get { return Array.ConvertAll(Console.ReadLine().Split(), long.Parse); } } } }