import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); long N=sc.nextLong(); int ans=0; HashSet set=new HashSet<>(); for(long div=1;div*div<=N;++div) { if(N%div!=0)continue; set.add(String.valueOf(div)+String.valueOf(N/div)); set.add(String.valueOf(N/div)+String.valueOf(div)); } System.out.println(set.size()); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }