#include<iostream>
#include<algorithm>
using namespace std;
int func(int a,int b){
    while(b){
        a%=b;
        swap(a,b);
    }
    return a*a;
}
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<a*b/func(a,b)*c<<endl;
    return 0;
}