import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	} main {
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intA = scan.nextInt(); intA scan.nextInt() scan.nextInt scan int intB = scan.nextInt(); intB scan.nextInt() scan.nextInt scan int intC = scan.nextInt(); intC scan.nextInt() scan.nextInt scan if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		} intB < intA intB intA {
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		} int intTemp = intA; intTemp intA intA = intB intA intB intB = intTemp intB intTemp int intCount = 0; intCount 0 for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		} int i = 0; int i = 0; i 0 i <= intB - intA i intB - intA intB intA i++ i++ i {
			if(intC % (intA + i) ==0){
				intCount++;
			}
		} {
			if(intC % (intA + i) ==0){
				intCount++;
			}
		} if(intC % (intA + i) ==0){
				intCount++;
			} intC % (intA + i) ==0 intC % (intA + i) intC (intA + i) intA i 0 {
				intCount++;
			} intCount++ intCount System.out.println(intCount) System.out.println System.out System System.out intCount String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int intC = scan.nextInt();
		if(intB < intA){
			int intTemp = intA;
			intA = intB;
			intB = intTemp;
		}
		int intCount = 0;
		for(int i = 0; i <= intB - intA; i++){
			if(intC % (intA + i) ==0){
				intCount++;
			}
		}
		System.out.println(intCount);
	}
}