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 INF = 2147483647;
const long long LLINF = 9223372036854775807LL;
int l, r, p;
bool isprime(int x) {
  for (int i = 2; i * i <= x; ++i)
    if (x % i == 0) return false;
  return true;
}
const int maxn = 3000010;
int a[maxn];
int acnt = 0;
bool prime[110];
void gen(long long val, int lst) {
  if (lst < p) gen(val, lst + 1);
  if (prime[lst] && val * lst <= r) {
    a[acnt++] = val * lst;
    gen(val * lst, lst);
  }
}
int dp[maxn];
bool can[maxn];
int cinf = 110;
int main() {
  for (int i = 0; i < 110; ++i) prime[i] = isprime(i);
  scanf("%d%d%d", &l, &r, &p);
  a[acnt++] = 1;
  gen(1, 2);
  sort(a, a + acnt);
  for (int i = 0; i < acnt; ++i) dp[i] = cinf;
  dp[0] = 0;
  for (int j = 0; j < p; ++j) {
    int ptr = 0;
    for (int i = 0; i < acnt; ++i) {
      if (dp[i] > p) continue;
      can[i] |= dp[i] <= p;
      if (a[i] * (long long)j <= r) {
        int needval = a[i] * j;
        while (a[ptr] != needval) ++ptr;
        int wh = ptr;
        dp[wh] = min(dp[wh], dp[i] + 1);
      }
      ++dp[i];
    }
  }
  int ans = 0;
  for (int i = 0; i < acnt; ++i)
    if (a[i] >= l) ans += can[i];
  printf("%d\n", ans);
  return 0;
}