Problem: Maxim has got a calculator. The calculator has two integer cells. Initially, the first cell contains number 1, and the second cell contains number 0. In one move you can perform one of the following operations:

  1. Let's assume that at the current time the first cell contains number a, and the second cell contains number b. Write to the second cell number b + 1; 
  2. Let's assume that at the current time the first cell contains number a, and the second cell contains number b. Write to the first cell number a·b. 



Maxim is wondering, how many integers x (l ≤ x ≤ r) are there, such that we can write the number x to the first cell of the calculator, having performed at most p moves.

Input

The first line contains three integers: l, r, p (2 ≤ l ≤ r ≤ 109, 1 ≤ p ≤ 100). 

The numbers in the line are separated by single spaces.

Output

In a single line print a single integer — the answer to the problem.

Examples

Input

2 10 3


Output

1


Input

2 111 100


Output

106


Input

2 111 11


Output

47

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int N = 5e6 + 5;
int l, r, k, ans, cnt, Id[N], f[N], d[N], p[105];
bool ok[N];
bool is_prime(int x) {
  for (int i = 2; i <= sqrt(x); i++)
    if (!(x % i)) return 0;
  return 1;
}
void solve(int x, int y) {
  if (x > p[0]) {
    d[++cnt] = y;
    return;
  }
  for (int a = 1; a <= r / y; a *= p[x]) {
    solve(x + 1, y * a);
    if (a > r / y / p[x]) break;
  }
}
int main() {
  scanf("%d%d%d", &l, &r, &k);
  for (int i = 2; i <= k; i++)
    if (is_prime(i)) p[++p[0]] = i;
  solve(1, 1);
  sort(d + 1, d + cnt + 1);
  for (int i = 1; i <= cnt; i++) f[i] = k + 1;
  f[1] = 0;
  for (int i = 2; i <= k; i++) {
    int x = 1;
    for (int j = 1; j <= cnt; j++) {
      if (d[j] > r / i) break;
      if (f[j] < k) {
        while (x <= cnt && d[j] > d[x] / i) x++;
        f[x] = ((f[x] < f[j] + 1) ? f[x] : f[j] + 1);
      }
    }
    for (int j = 1; j <= cnt; j++) ok[j] |= f[j] + i <= k;
  }
  for (int i = 1; i <= cnt; i++)
    if (d[i] >= l && d[i] <= r && ok[i]) ans++;
  printf("%d\n", ans);
}