import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    }

    private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    }

    private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    }
} Main public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    } main {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    } int result = 0; result 0 int a a b b c; c Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} Exception e {
	    System.out.println(e.getMessage());
	} System.out.println(e.getMessage()) System.out.println System.out System System.out e.getMessage() e.getMessage e {
	    sc.close();
	} sc.close() sc.close sc {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    } int i = a; int i = a; i a i <= b i b i++ i++ i {
		if (canMod(i, c)) {
		    result++;
		}
	    } {
		if (canMod(i, c)) {
		    result++;
		}
	    } if (canMod(i, c)) {
		    result++;
		} canMod(i, c) canMod i c {
		    result++;
		} result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    } canMod {
	return c % a == 0 ? true : false;
    } return c % a == 0 ? true : false; c % a == 0 ? true : false c % a == 0 c % a c a 0 true false int a a int c c public class Main {
    public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    }

    private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    }
} public class Main {
    public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    }

    private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
	int result = 0;
	int a, b, c;
	Scanner sc = new Scanner(System.in);
	try {
	    a = sc.nextInt();
	    b = sc.nextInt();
	    c = sc.nextInt();
	    for (int i = a; i <= b; i++) {
		if (canMod(i, c)) {
		    result++;
		}
	    }
	} catch (Exception e) {
	    System.out.println(e.getMessage());
	} finally {
	    sc.close();
	}
	System.out.println(result);
    }

    private static boolean canMod(int a, int c) {
	return c % a == 0 ? true : false;
    }
}