import java.util.Scanner; public class No300 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long input = scanner.nextLong(); System.out.println(getAnswerNum(input)); scanner.close(); } private static long getAnswerNum(long input) { long index = 2; while(true) { long squareIndex = index * index; if(input < squareIndex) { break; } while(input % squareIndex == 0) { input /= squareIndex; } index++; } return input; } }