#include #include #include using namespace std; ifstream fin("kmul.in"); ofstream fout("kmul.out"); int NOD(int a,int b) { while(a&&b) { if (a>b) a%=b; else b%=a; if (!a) { return a; } return b; } } int main() { int a,b,k,res; fin>>a>>b>>k; res=((a*b)/NOD(a,b))*k; fout<