from math import sqrt x = input() y = 1 i = 2 while i<=sqrt(x): c = 0 while x%i<1: c ^= 1 x /= i if c: y *= i i += 1 print y