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;
int primes[110];
int pcnt = 0;
void gen(long long val, int lst) {
  if (lst < pcnt - 1) gen(val, lst + 1);
  if (val * primes[lst] <= r) {
    a[acnt++] = val * primes[lst];
    gen(val * primes[lst], lst);
  }
}
int dp[maxn];
bool can[maxn];
int cinf = 110;
int main() {
  scanf("%d%d%d", &l, &r, &p);
  for (int i = 2; i <= p; ++i)
    if (isprime(i)) primes[pcnt++] = i;
  a[acnt++] = 1;
  gen(1, 0);
  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;
      if (a[i] * (long long)j <= r) {
        int needval = a[i] * j;
        while (a[ptr] != needval) ++ptr;
        dp[ptr] = min(dp[ptr], dp[i] + 1);
        can[ptr] |= dp[ptr] <= p;
      } else
        break;
      ++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;
}