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