import java.util.*;
public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	} main {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int s = 0; s 0 if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b); a<b a b {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			} for(;a<b;a++){
			if(c % a == 0) s++;
		} ; a<b a b a++ a++ a {
			if(c % a == 0) s++;
		} {
			if(c % a == 0) s++;
		} if(c % a == 0) s++; c % a == 0 c % a c a 0 s++ s if(a>b); a>b a b {
		for(; b<a;b++){
			if(c% b == 0)s++;}
	} for(; b<a;b++){
			if(c% b == 0)s++;} ; b<a b a b++ b++ b {
			if(c% b == 0)s++;} {
			if(c% b == 0)s++;} if(c% b == 0)s++; c% b == 0 c% b c b 0 s++ s if(a==b)if(c % a == 0) s++; a==b a b if(c % a == 0) s++; c % a == 0 c % a c a 0 s++ s System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	}
} public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	
	int s = 0;
	if(a<b) {
		for(;a<b;a++){
			if(c % a == 0) s++;
		}
			
		
			}
	else if(a>b);{
		for(; b<a;b++){
			if(c% b == 0)s++;}
	}
	if(a==b)if(c % a == 0) s++;	
	System.out.println(s);
	}
}