import java.util.HashSet; import java.util.Scanner; public class N537 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); long N=sc.nextLong(); HashSet hs=new HashSet(); for(int i=1;i<=((N%2==0)?N/2:(N-1)/2);i++) { if(N%i==0) { String sf=String.valueOf(i); String ss=String.valueOf(N/i); hs.add(sf+ss); } } System.out.println(hs.size()); } }