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;
int l, r, p, prime[110], rez;
vector<int> V, dp, counted;
bool check(int x) {
  for (int i = 2; i < x; ++i)
    if (x % i == 0) return 0;
  return 1;
}
void rek(int a, int b) {
  if (b > p) return;
  if (prime[b]) {
    if ((long long)a > r / b) return;
    rek(a, b + 1);
    V.push_back(a * b);
    rek(a * b, b);
  } else
    rek(a, b + 1);
}
int main() {
  for (int i = 2; i < 110; ++i) prime[i] = check(i);
  scanf("%d%d%d", &l, &r, &p);
  V.push_back(1);
  rek(1, 2);
  sort(V.begin(), V.end());
  dp.resize(V.size(), (int)1e9);
  dp[0] = 0;
  counted.resize(V.size(), 0);
  for (int i = 2; i <= p; ++i) {
    int idx = 0;
    for (int j = 0; j < V.size() && idx < V.size(); ++j) {
      while (idx < V.size() && i * V[j] > V[idx]) ++idx;
      if (V[j] * i != V[idx]) continue;
      dp[idx] = min(dp[idx], dp[j] + 1);
      if (!counted[idx] && dp[idx] + i <= p) {
        counted[idx] = 1;
        if (l <= V[idx] && r >= V[idx]) ++rez;
      }
    }
  }
  printf("%d\n", rez);
  return 0;
}