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;
template <typename T>
inline T read(register T& t) {
  register T f = 1;
  register char ch = getchar();
  t = 0;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -f;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') t = t * 10 + ch - '0', ch = getchar();
  t *= f;
  return t;
}
template <typename T, typename... Args>
inline void read(T& t, Args&... args) {
  read(t);
  read(args...);
}
int l, r, m;
int prime[105], prime_top;
bool vis[105];
int val[3000006], val_top;
void dfs(int now, long long v) {
  if (now > prime_top) return val[++val_top] = v, void();
  long long w = 1;
  dfs(now + 1, v);
  while (1) {
    w = w * prime[now];
    if (w * v > r) break;
    dfs(now + 1, w * v);
  }
}
int f[3000006];
bool abl[3000006];
int g[3000006];
int main() {
  read(l, r, m);
  for (int i = 2; i <= m; i++) {
    if (vis[i] == 0) prime[++prime_top] = i;
    for (int j = 1; j <= prime_top && 1ll * prime[j] * i <= m; j++) {
      vis[i * prime[j]] = 1;
      if (i % prime[j] == 0) break;
    }
  }
  dfs(1, 1);
  int n = val_top;
  sort(val + 1, val + n + 1);
  memset(f, 0x3f, sizeof(f));
  f[1] = 0;
  for (int i = 1; i <= m; i++) {
    for (int j = 1; j <= n; j++) g[j] = f[j];
    f[1] = 0;
    int id = 1;
    for (int j = 1; 1ll * i * val[j] <= r && j <= n; j++) {
      while (id <= n && val[id] != i * val[j]) id++;
      f[id] = min(f[j] + 1, g[id]);
    }
    for (int j = 1; j <= n; j++)
      if (f[j] + i <= m) abl[j] = 1;
  }
  int ans = 0;
  for (int i = 1; i <= n; i++)
    if (abl[i] && l <= val[i] && val[i] <= r) ans++;
  printf("%d\n", ans);
  return 0;
}