import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    }
} Main private final static String SPACE = " "; SPACE " " public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    } main {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    } try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } catch (Exception e) {
            System.exit(-1);
        } Exception e {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in)); stdReader new BufferedReader(
                    new InputStreamReader(System.in)) String sStr; sStr while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            } (sStr = stdReader.readLine()) != null (sStr = stdReader.readLine()) sStr stdReader.readLine() stdReader.readLine stdReader null {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            } String[] inputs = sStr.split(" "); inputs sStr.split(" ") sStr.split sStr " " int a = Integer.valueOf(inputs[0]); a Integer.valueOf(inputs[0]) Integer.valueOf Integer inputs[0] inputs 0 int b = Integer.valueOf(inputs[1]); b Integer.valueOf(inputs[1]) Integer.valueOf Integer inputs[1] inputs 1 int c = Integer.valueOf(inputs[2]); c Integer.valueOf(inputs[2]) Integer.valueOf Integer inputs[2] inputs 2 int count = 0; count 0 if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } b < c b c {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    } int x = a; int x = a; x a x <= b x b x++ x++ x {
                        if (c % x == 0) {
                            count++;
                        }
                    } {
                        if (c % x == 0) {
                            count++;
                        }
                    } if (c % x == 0) {
                            count++;
                        } c % x == 0 c % x c x 0 {
                            count++;
                        } count++ count {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    } int x = a; int x = a; x a x <= c x c x++ x++ x {
                        if (c % x == 0) {
                            count++;
                        }
                    } {
                        if (c % x == 0) {
                            count++;
                        }
                    } if (c % x == 0) {
                            count++;
                        } c % x == 0 c % x c x 0 {
                            count++;
                        } count++ count System.out.println(count) System.out.println System.out System System.out count stdReader.close() stdReader.close stdReader String[] args args public class Main {
    
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    }
} public class Main {
    
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            while ((sStr = stdReader.readLine()) != null) {
                String[] inputs = sStr.split(" ");
                
                int a = Integer.valueOf(inputs[0]);
                int b = Integer.valueOf(inputs[1]);
                int c = Integer.valueOf(inputs[2]);
                
                int count = 0;
                if (b < c) {
                    for (int x = a; x <= b; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                } else {
                    for (int x = a; x <= c; x++) {
                        if (c % x == 0) {
                            count++;
                        }
                    }
                }
                System.out.println(count);
            }
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
    }
}