import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int count = 1; int temp = 1; for (int i=n/2;i>0;i--) { if (n / i != temp) { count ++; temp = n/i; } } System.out.println(count); }}