#!ruby -nrprime t=1;$_.to_i.prime_division.map{|a,b|b&1>0&&t*=a};p t