#include<bits/stdc++.h>
using namespace std;int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);for(int i=a;;i+=a){if(i%b==0){if(i%c==0){printf("%d\n",i);break;}}}return 0;
}
#include<bits/stdc++.h>
using namespace std;int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c);for(int i=a;;i+=a){if(i%b==0){if(i%c==0){printf("%d\n",i);break;}}}return 0;
}