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 MAXN = 105, MAXM = 3e6 + 5;
char buf[1 << 12], *pp1 = buf, *pp2 = buf, nc;
int ny;
inline char gc() {
  return pp1 == pp2 &&
                 (pp2 = (pp1 = buf) + fread(buf, 1, 1 << 12, stdin), pp1 == pp2)
             ? EOF
             : *pp1++;
}
inline int read() {
  int x = 0;
  for (ny = 1; nc = gc(), (nc < 48 || nc > 57) && nc != EOF;)
    if (nc == 45) ny = -1;
  if (nc < 0) return nc;
  for (x = nc - 48; nc = gc(), 47 < nc && nc < 58 && nc != EOF;
       x = (x << 3) + (x << 1) + (nc ^ 48))
    ;
  return x * ny;
}
int p[MAXN], cnt, vis[MAXN], id[MAXN][MAXN], Cnt[MAXN];
inline void Init(int n) {
  for (int i = (2); i <= (n); i++) {
    if (!vis[i]) p[++cnt] = i, Cnt[i] = 1;
    for (int j = 1; j <= cnt && i * p[j] <= n; j++) {
      vis[i * p[j]] = 1, Cnt[i * p[j]] = Cnt[i] + 1;
      if (i % p[j] == 0) break;
    }
  }
}
int ans, l, r, n, s[MAXM], tot, f[MAXM], res[MAXM];
inline void dfs(int x, int now, int Max) {
  if (x == cnt + 1) {
    s[++tot] = now;
    return;
  }
  for (long long t = now; t <= r; t *= p[x]) dfs(x + 1, t, Max), Max = p[x];
}
inline void upd(int& x, int y) { x > y ? x = y : 0; }
int main() {
  l = read(), r = read(), n = read();
  Init(n), dfs(1, 1, 0);
  sort(s + 1, s + tot + 1);
  memset(f, 0x3f, sizeof(f)), memset(res, 0x3f, sizeof(res)), f[1] = 0;
  for (int i = (1); i <= (n); i++) {
    int k = 0;
    for (int j = (1); j <= (tot); j++) {
      for (; s[k] < s[j] / i; k++)
        ;
      if (s[j] % i == 0) upd(f[j], f[k] + 1);
      upd(res[j], f[j] + i);
    }
  }
  for (int i = (1); i <= (tot); i++)
    if (s[i] >= l && res[i] <= n) ans++;
  cout << ans << "\n";
  return 0;
}