#include<stdio.h>
int main()
{
    
    long long res,x,y,m,n;
    while(scanf("%lld %lld",&m,&n)!=EOF)
    {
        res=m%n;
y=n;
        while(res)
        {x=y;

            y=res;
           res=x%y;
        }

printf("%lld%lld\n",y,m*n/y);


    }
    return 0;
}
