#include <iostream>
using namespace std;

int gcd(int a, int b){
    return (b==0)? a :gcd(b, a%b);
}

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout << (a/gcd(a,b) * b/gcd(a,b))*c << endl;
    return 0;
}

