n=eval *$< p (1..n**0.5).sum{|x|n%x|x&~n/x<1?1<<("%b"%x).sum%48-1:0}