#include int main(void){ int a,b,big,small; scanf("%d",&a); scanf("%d",&b); if(a < b){ big = b; small = a; } else{ big = a; small = b; } while(1){ if(a % big == 0)break; a += small; } printf("%d\n",a); return 0; }