require'prime';r=1;gets.to_i.prime_division.map{|n,p|r*=[1,n][p%2]};p r