N=int(input()) r2N=int(N**0.5) for n in range(2,r2N+1): while N%(n*n)==0: N //=(n*n) print(N)