#include using namespace std; int main() { int N; cin >> N; vector d; for( int i = 1; i * i <= N; i++ ) { if( N % i == 0 ) { d.push_back( i ); if( N / i != i ) d.push_back( N / i ); } } int lcm = 1; int n = d.size(); for( int i = 0; i < n; i++ ) { lcm = lcm / __gcd( lcm, d[i] ) * d[i]; } cout << lcm << endl; }