#include <bits/stdc++.h>   using namespace std;   int main() {     ios::sync_with_stdio(false);     long long n;     cin >> n;     long long result = 1;     long long x = n;     for (long long i = 2; i * i <= x; ++i) {       if (n % i == 0) {         result *= i;         while (n % i == 0) n /= i;       }     }     result *= n;     cout << result << endl;     return 0;   }   