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;
inline int read() {
  int x = 0, f = 1;
  char c = getchar();
  for (; !isdigit(c); c = getchar())
    if (c == '-') f = -1;
  for (; isdigit(c); c = getchar()) x = x * 10 + c - '0';
  return x * f;
}
const int maxn = 3000010;
int pri[110], vis[110], cnt;
void gen(int n) {
  for (int i = 2; i <= n; i++) {
    if (!vis[i]) pri[++cnt] = i;
    for (int j = 1; j <= cnt; j++) {
      if (i * pri[j] > n) break;
      vis[i * pri[j]] = 1;
      if (i % pri[j] == 0) break;
    }
  }
}
int l, r, p, A[maxn], f[maxn], is[maxn], n;
void dfs(long long num, int x, int t) {
  if (t && num <= r) A[++n] = num;
  if (x <= cnt) dfs(num, x + 1, 0);
  if (x <= cnt)
    while (1) {
      if (num > r) break;
      num *= pri[x];
      if (x <= cnt) dfs(num, x + 1, 1);
    }
}
int main() {
  l = read();
  r = read();
  gen(p = read());
  dfs(1, 1, 1);
  sort(A + 1, A + n + 1);
  for (int i = 2; i <= n; i++) f[i] = 1e9;
  for (int i = 2; i <= p - 1; i++) {
    int k = 1;
    for (int j = 1; j <= n; j++) {
      while (A[k] < A[j] * i) k++;
      if (k > n) break;
      f[k] = min(f[k], f[j] + 1);
      if (f[k] + i <= p) is[k] = 1;
    }
  }
  int ans = 0;
  for (int i = 1; i <= n; i++)
    if (A[i] >= l && is[i]) ans++;
  printf("%d\n", ans);
  return ~~(0 - 0);
}