#include<iostream> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; int x=1; while(x%a!=0||x%b!=0||x%c!=0) x++; cout<<x<<endl; return 0; }