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>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
int pr[100];
int cnt;
long long a[3000000];
int d[3000000];
bool good[3000000];
int n, p;
long long l, r;
void gen(int k, long long cur) {
  if (k == cnt) {
    a[n++] = cur;
    return;
  }
  gen(k + 1, cur);
  while (cur * pr[k] <= r) {
    cur *= pr[k];
    gen(k + 1, cur);
  }
}
int main() {
  cin >> l >> r >> p;
  cnt = 0;
  for (int i = 2; i <= p; i++) {
    bool ok = true;
    for (int j = 2; j < i; j++) {
      if (i % j == 0) {
        ok = false;
      }
    }
    if (ok) pr[cnt++] = i;
  }
  gen(0, 1);
  sort(a, a + n);
  for (int i = 0; i < (int)(n); i++) d[i] = 3000000;
  for (int add = 1; add <= (int)(p); add++) {
    int ptr = 0;
    for (int i = 0; i < (int)(n); i++) {
      if (a[i] == add) d[i] = 1;
      long long t = a[i] * add;
      while (ptr < n && a[ptr] < t) ptr++;
      if (ptr == n) break;
      if (a[ptr] == t) d[ptr] = min(d[ptr], d[i] + 1);
    }
    for (int i = 0; i < (int)(n); i++) good[i] |= (d[i] + add <= p);
  }
  int ans = 0;
  for (int i = 0; i < (int)(n); i++)
    if (good[i] && a[i] >= l) ans++;
  cout << ans << endl;
  return 0;
}