GCD
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld

题目描述

Bob is interested in GCDs (Greatest Common Divisors). Formally, for some positive integers (a_1,...,a_k), we denote as the greatest positive integer d, such that for each .

Bob has chosen an interval . He is going to choose k distinct integers from the interval and compute their GCD. There are many integers that can be the final answer, and Bob is curious in the number of such integers. Please write a program to tell him the answer.

输入描述:

The first and only line of input consists of three integers .

输出描述:

Print a single integer, indicating your answer.

示例1

输入

复制
5 9 2

输出

复制
3

说明

For the sample, it is possible to get 1,2,3 as the final GCD, by choosing numbers (7,9), (6,8) and (6,9). It turns out that any other integer cannot become the GCD, thus the answer is 3.