using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using System.Text.RegularExpressions; using System.Linq; class Magatro { static void Main() { long X = long.Parse(Console.ReadLine()); long ans = 1; for(int i = 2; i <= Math.Sqrt(X); i++) { if (X % i == 0) { int c = 0; while (X % i == 0) { c++; X /= i; } if (c % 2 == 1) { ans *= i; } } } ans *= X; Console.WriteLine(ans); } }