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 Max_P(105);
const int Max_N(4000050);
int L, R, P, N, V[Max_N];
int ps, AllP[Max_P];
bool Prime[Max_P];
void dfs(const int &now, const int &pos) {
  if (pos == ps + 1) {
    V[++N] = now;
    return;
  }
  for (long long int tmp = 1LL; (now * 1LL) * tmp <= (R * 1LL);
       tmp *= AllP[pos])
    dfs(now * tmp, pos + 1);
}
int Ans[Max_N], F[Max_N];
inline void update(int &a, const int &b) { a = min(a, b); }
int main() {
  scanf("%d%d%d", &L, &R, &P);
  memset(Prime, true, sizeof(Prime)), Prime[0] = Prime[1] = false;
  for (int i = 2; i <= P; ++i) {
    if (Prime[i]) AllP[++ps] = i;
    for (int j = i * i; j <= P; j += i) Prime[j] = false;
  }
  dfs(1, 1), sort(V + 1, V + 1 + N);
  memset(F, 0X3F, sizeof(F)), memset(Ans, 0X3F, sizeof(Ans));
  Ans[0] = 0, Ans[1] = F[1] = 0;
  for (int b = 1, now = 1, last = 0; b <= P; ++b, now ^= 1, last ^= 1)
    for (int a = 1, j = 1; a <= N; ++a) {
      if ((V[a] * 1LL) * (b * 1LL) <= (R * 1LL)) {
        while (j <= N && V[a] * b > V[j]) ++j;
        if (V[j] == V[a] * b) update(F[j], F[a] + 1);
      }
      update(Ans[a], F[a] + b);
    }
  for (int i = 1; i <= N; ++i)
    if (L <= V[i] && V[i] <= R && Ans[i] <= P) ++Ans[0];
  printf("%d", Ans[0]);
  return 0;
}