import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

} Main public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	} constraints1 {
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	} int result1 = 0; result1 0 if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		} 0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 0 < c b <= 10000 0 < b 0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 0 < a 0 a a <= 10000 a 10000 0 < b 0 b b <= 10000 b 10000 0 < c 0 c c<= 10000 c 10000 { //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		} result1 = 1 result1 1 {
			result1 = 0; //?????????????????¨???
		} result1 = 0 result1 0 return result1; result1 int a a int b b int c c public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	} constraints2 {
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	} int result2 = 0; result2 0 if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		} b-a >= 0 b-a b a 0 {//a<=b????????????????????¶??????
			result2 = 1;
		} result2 = 1 result2 1 {
			result2 = 0; //?????????????????¨???
		} result2 = 0 result2 0 return result2; result2 int a a int b b public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	} main {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	} int a a b b c; c int f=0; f 0 int count=0; count 0 int len1 len1 len2; len2 ArrayList<String> st = new ArrayList<String>(); st new ArrayList<String>() ArrayList<Integer> parse = new ArrayList<Integer>(); parse new ArrayList<Integer>() ArrayList<Integer> bet = new ArrayList<Integer>(); bet new ArrayList<Integer>() Scanner scan = new Scanner(System.in); scan new Scanner(System.in) for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i { //??\?????´??°???3???
		st.add(scan.next());
		} { //??\?????´??°???3???
		st.add(scan.next());
		} st.add(scan.next()) st.add st scan.next() scan.next scan len1 = st.size() len1 st.size() st.size st a = Integer.parseInt(st.get(0)) a Integer.parseInt(st.get(0)) Integer.parseInt Integer st.get(0) st.get st 0 parse.add(a) parse.add parse a b = Integer.parseInt(st.get(1)) b Integer.parseInt(st.get(1)) Integer.parseInt Integer st.get(1) st.get st 1 parse.add(b) parse.add parse b c = Integer.parseInt(st.get(2)) c Integer.parseInt(st.get(2)) Integer.parseInt Integer st.get(2) st.get st 2 parse.add(c) parse.add parse c if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		} constraints1(a,b,c) == 0 constraints1(a,b,c) constraints1 a b c 0 {
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		} System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.") System.out.println System.out System System.out "a,b,c?????????1~10000??§??\?????????????????????.???????????????." System.exit(0) System.exit System 0 if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		} constraints2(a,b) == 0 constraints2(a,b) constraints2 a b 0 {
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		} System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.") System.out.println System.out System System.out "a,b?????????a<=b??§??\?????????????????????.???????????????." System.exit(0) System.exit System 0 for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		} f = a; f = a f a f <= b f b f++ f++ f { //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		} { //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		} bet.add(f) bet.add bet f len2 = bet.size() len2 bet.size() bet.size bet for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		} int j = 0; int j = 0; j 0 j < len2 j len2 ++j ++j j {
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		} {
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		} if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			} c % bet.get(j) == 0 c % bet.get(j) c bet.get(j) bet.get bet j 0 { //c????????£?????¨???????????????0???????????????????´???°
				++count;
			} ++count count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

} public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static int constraints1(int a,int b,int c){
		int result1 = 0;
		if(0 < a || a <= 10000 || 0 < b || b <= 10000 || 0 < c || c<= 10000 ){ //a,b,c????????¶??????(??????????????´???)
			result1 = 1;
		}
		else{
			result1 = 0; //?????????????????¨???
		}
		return result1;
	}
	public static int constraints2(int a,int b){
		int result2 = 0;
		if(b-a >= 0){//a<=b????????????????????¶??????
			result2 = 1;
		}
		else{
			result2 = 0; //?????????????????¨???
		}
		return result2;
	}
	public static void main(String[] args) {
		/**
		 * ?????°?????£?¨?
		 */
		int a,b,c;
		int f=0; //?????????
		int count=0;
		int len1,len2;

		/**
		 * ???????????£?¨?
		 */
		ArrayList<String> st = new ArrayList<String>();
		ArrayList<Integer> parse = new ArrayList<Integer>();
		ArrayList<Integer> bet = new ArrayList<Integer>();
		/**
		 * ??\?????¨????????????????´?
		 */
		Scanner scan = new Scanner(System.in);
		for(int i = 0; i < 3; i++){ //??\?????´??°???3???
		st.add(scan.next());
		}
		len1 = st.size(); //?????????????´???°

		/**
		 * String???int??????,int???????????????????´?
		 */
		a = Integer.parseInt(st.get(0));
		parse.add(a);
		b = Integer.parseInt(st.get(1));
		parse.add(b);
		c = Integer.parseInt(st.get(2));
		parse.add(c);
		/**
		 * ???????????????
		 */
		if(constraints1(a,b,c) == 0){
			System.out.println("a,b,c?????????1~10000??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		if(constraints2(a,b) == 0){
			System.out.println("a,b?????????a<=b??§??\?????????????????????.???????????????.");
			System.exit(0);;
		}
		/**
		 * ????????\?¨?
		 */
		for(f = a; f <= b; f++){ //a??????b???????????°???(a???b???????????????)
			bet.add(f); //????????°???????????????int?????????????´?
		}
		len2 = bet.size();

		for(int j = 0;j < len2; ++j){
			if(c % bet.get(j) == 0){ //c????????£?????¨???????????????0???????????????????´???°
				++count;
			}
		}
		System.out.println(count);
	}

}