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, c = getchar(), f = 0;
  for (; c > '9' || c < '0'; f = c == '-', c = getchar())
    ;
  for (; c >= '0' && c <= '9'; x = (x << 1) + (x << 3) + c - '0', c = getchar())
    ;
  return f ? -x : x;
}
inline void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) write(x / 10);
  putchar(x % 10 + 48);
}
const int Lim = 5000000;
int ans, L, R, P;
int p[100], f[Lim], a[Lim];
bool vis[Lim];
void get_prime(int n) {
  vis[1] = 0;
  for (int i = 2, _y = n; i <= _y; ++i) {
    if (!vis[i]) p[++*p] = i;
    for (int j = 1; j <= *p && p[j] * i <= n; j++) {
      vis[i * p[j]] = 1;
      if (i % p[j] == 0) break;
    }
  }
}
void dfs(int now, int x) {
  if (x > *p || now > R || now > R / p[x]) return;
  if (x < *p) dfs(now, x + 1);
  a[++*a] = now * p[x];
  dfs(now * p[x], x);
}
int main() {
  get_prime(100);
  scanf("%d%d%d", &L, &R, &P);
  a[*a = 1] = 1;
  dfs(1, 1);
  sort(a + 1, a + *a + 1);
  memset(f, 40, sizeof f);
  memset(vis, 0, sizeof vis);
  f[1] = 0;
  for (int i = 2, _y = P; i <= _y; ++i) {
    int k = 1;
    for (int j = 1; k <= *a; j++) {
      for (; k <= *a && a[k] < a[j] * i; k++)
        ;
      if (a[k] == a[j] * i) {
        f[k] = min(f[k], f[j] + 1);
        if (!vis[k] && i + f[k] <= P) vis[k] = 1, ans += L <= a[k] && a[k] <= R;
      }
    }
  }
  printf("%d\n", ans);
}