import java.io.*;

class Main{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        }
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        }
    }
} Main public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        } IOException e {
            //TODO: handle exception
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } String line = reader.readLine(); line reader.readLine() reader.readLine reader String[] strAry = line.split(" "); strAry line.split(" ") line.split line " " int a = Integer.parseInt(strAry[0]); a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int b = Integer.parseInt(strAry[1]); b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int c = Integer.parseInt(strAry[2]); c Integer.parseInt(strAry[2]) Integer.parseInt Integer strAry[2] strAry 2 int d = 0 d 0 e = 0; e 0 if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    } a > b a b {
                        d = a;
                        a = b;
                        b = d;
                    } d = a d a a = b a b b = d b d for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                } int i = a; int i = a; i a i <= b i b i++ i++ i {
                    if(c % i == 0){
                        e += 1;
                    }
                } {
                    if(c % i == 0){
                        e += 1;
                    }
                } if(c % i == 0){
                        e += 1;
                    } c % i == 0 c % i c i 0 {
                        e += 1;
                    } e += 1 e 1 System.out.println(e) System.out.println System.out System System.out e String[] args args
import java.io.*;

class Main{
    public static void main(String[] args){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {       
                    String line = reader.readLine();
                    String[] strAry = line.split(" ");
                    int a = Integer.parseInt(strAry[0]);
                    int b = Integer.parseInt(strAry[1]);
                    int c = Integer.parseInt(strAry[2]);

                    int d = 0, e = 0;

                    if(a > b){
                        d = a;
                        a = b;
                        b = d;
                    }

                for(int i = a; i <= b; i++){
                    if(c % i == 0){
                        e += 1;
                    }
                }

                System.out.println(e);
                
        } catch (IOException e) {
            //TODO: handle exception
            System.out.println(e);
        }
    }
}