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 MAGIC = 3333333;
int L, R, p;
int P[50];
int A[MAGIC], dp[MAGIC], Q[MAGIC];
bool isPrime(int x) {
  for (int i = 2; i * i <= x; i++)
    if (x % i == 0) return false;
  return true;
}
void DFS(int x, int a, bool sig) {
  if (sig) A[++A[0]] = x;
  if (a > P[0]) return;
  DFS(x, a + 1, false);
  if (x <= R / P[a]) DFS(x * P[a], a, true);
}
int main() {
  scanf("%d%d%d", &L, &R, &p);
  P[0] = 0;
  int i;
  for (i = 2; i <= p; i++)
    if (isPrime(i)) P[++P[0]] = i;
  A[0] = 0;
  DFS(1, 1, true);
  sort(A + 1, A + A[0] + 1);
  for (i = 1; i <= A[0]; i++) dp[i] = Q[i] = 2333;
  dp[1] = 0;
  Q[1] = 0;
  for (i = 2; i <= p; i++) {
    int j, r = 1;
    for (j = 1; j <= A[0]; j++) {
      if (A[j] > A[A[0]] / i) break;
      while (A[r] != A[j] * i) r++;
      dp[r] = min(dp[r], dp[j] + 1);
      Q[r] = min(Q[r], dp[r] + i);
    }
  }
  int ans = 0;
  for (i = 1; i <= A[0]; i++)
    if ((A[i] >= L) && (Q[i] <= p)) ans++;
  printf("%d\n", ans);
}