print((function (f, n) return f(n) end)(function (n) function len(h) local r=0 for k,v in pairs(h) do r=r+1 end return r end local t,s,h = math.floor(math.sqrt(n)),"%.0f%.0f",{} for i=1,t do if n%i == 0 then local l,r = s:format(n/i,i),s:format(i,n/i) if h[l] == nil then h[l] = 0 end if h[r] == nil then h[r] = 0 end end end return len(h) end, io.stdin:read("*n")))