using System; namespace No300_1{ public class Program{ public static void Main(string[] args){ long x = long.Parse(Console.ReadLine()); long tmp = x; long result = 1; { var cnt = 0; while(tmp % 2 == 0){ tmp /= 2; cnt++; } if(cnt % 2 == 1){ result *= 2; } } for(long i = 3; i * i <= x; i += 2){ var cnt = 0; while(tmp % i == 0) { tmp /= i; cnt++; } if(cnt % 2 == 1){ result *= i; } } if(tmp > 1) result *= tmp; Console.WriteLine(result); } } }