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 P[26] = {0,  2,  3,  5,  7,  11, 13, 17, 19, 23, 29, 31, 37,
                   41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97};
int A[3000050], f[3000050];
bool vis[3000050];
int l, r, p, tot;
void dfs(int i, int x) {
  if (i > 25) {
    tot++;
    A[tot] = x;
    return;
  }
  while (1) {
    dfs(i + 1, x);
    if (r / P[i] < x) break;
    x *= P[i];
  }
}
int main() {
  int i, j, k, ans;
  scanf("%d%d%d", &l, &r, &p);
  tot = 0;
  dfs(1, 1);
  sort(A + 1, A + tot + 1);
  memset(f, 0x3f, sizeof(f));
  memset(vis, false, sizeof(vis));
  f[1] = 0;
  vis[1] = true;
  for (i = 2; i <= p; i++) {
    k = 0;
    for (j = 1; j <= tot; j++) {
      if (r / i < A[j]) break;
      if (f[j] + i <= p) {
        while ((k < tot) && (A[k + 1] <= A[j] * i)) k++;
        f[k] = min(f[k], f[j] + 1);
        if (f[k] + i <= p) vis[k] = true;
      }
    }
  }
  ans = 0;
  for (i = 1; i <= tot; i++)
    if ((A[i] >= l) && (A[i] <= r) && vis[i]) ans++;
  printf("%d\n", ans);
  return 0;
}