import java.io.*;
public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
} import java.io.*; io.* java public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
} Main public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    } main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        } catch (IOException e) {
          System.out.println(e);
        } IOException e {
          System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e catch (NumberFormatException e) {
          System.out.println("error");
        } NumberFormatException e {
          System.out.println("error");
        } System.out.println("error") System.out.println System.out System System.out "error" {
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader String[] num = line.split(" ", -1); num line.split(" ", -1) line.split line " " -1 1 int a = Integer.parseInt(num[0]); a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int b = Integer.parseInt(num[1]); b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int c = Integer.parseInt(num[2]); c Integer.parseInt(num[2]) Integer.parseInt Integer num[2] num 2 int n = 0; n 0 for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	} int i = a; int i = a; i a i <= b i b i++ i++ i {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	} {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	} if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		} (c % i) == 0 (c % i) c i 0 {
        			n = n + 1;
        		} n = n + 1 n n + 1 n 1 {
        			//nothing
        		} System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
} public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
} Main
import java.io.*;
public class Main {
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			String line = reader.readLine();
        	String[] num = line.split(" ", -1);
        	int a = Integer.parseInt(num[0]);
        	int b = Integer.parseInt(num[1]);
        	int c = Integer.parseInt(num[2]);
        	int n = 0;
        	for (int i = a; i <= b; i++) {
        		if((c % i) == 0) {
        			n = n + 1;
        		} else {
        			//nothing
        		}
        	}
        	System.out.println(n);
        } catch (IOException e) {
          System.out.println(e);
        } catch (NumberFormatException e) {
          System.out.println("error");
        }
    }
}