#include
int gcd(int a, int b)
{
int t;
while(b > 0)
{
a %= b;
t = b;
b = a;
a = t;
}
return a;
}
int lcm(int a, int b)
{
return a*b/gcd(a,b);
}
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("lcm(%d,%d) = %dn", a, b, lcm(a,b));
}
#include
int gcd(int a, int b)
{
int t;
while(b > 0)
{
a %= b;
t = b;
b = a;
a = t;
}
return a;
}
int lcm(int a, int b)
{
return a*b/gcd(a,b);
}
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("lcm(%d,%d) = %dn", a, b, lcm(a,b));
}