import std.stdio;
import std.conv;
import std.string;
import std.math;
import std.algorithm;
import std.range;

void main() {
    long n = readln.chomp.to!long;
    long[] answer;
    for (long i = 2; i <= sqrt(cast(float)n); i++) {
        if (n % i == 0) {
            answer ~= i;
        }

        while (n % i == 0) {
            n /= i;
        }
    }

    if (answer.empty) {
        writeln(n);
    } else {
        writeln(answer.reduce!("a * b") * n);
    }
}