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 = 3000005;
bool f[MAXN], Ok[MAXN];
int l, r, p;
int Bot[MAXN], Num[MAXN], step[MAXN], cnt, cur;
void Dfs(int Now, int V, int Pr) {
  if (Now > cnt) return;
  Num[++cur] = V;
  int Nt = cur;
  for (int j = Now; j <= cnt; j++)
    if (V * (long long)Bot[j] <= r) Dfs(j, V * Bot[j], Nt);
}
int min(int a, int b) {
  if (a == -1) return b;
  if (b == -1) return a;
  return a < b ? a : b;
}
int main() {
  scanf("%d%d%d", &l, &r, &p);
  for (int i = 2; i <= 100; i++)
    for (int j = i; j <= 100; j++) f[i * j] = 1;
  for (int i = 2; i <= 100; i++)
    if (!f[i]) Bot[++cnt] = i;
  Num[cur = 1] = 1;
  for (int i = 1; i <= cnt; i++) {
    Dfs(i, Bot[i], 0);
  }
  sort(Num + 1, Num + cur + 1);
  for (int i = 2; i <= cur; i++) step[i] = -1;
  for (int i = 1; i <= p; i++) {
    int k = 1;
    for (int j = 1; j <= cur; j++)
      if (Num[j] % i == 0) {
        while (Num[j] != Num[k] * i) k++;
        if (step[k] != -1 && (step[k] + 1 < step[j] || step[j] == -1))
          step[j] = step[k] + 1;
        if (i + step[j] <= p && step[j] != -1) Ok[j] = 1;
      }
  }
  int Ans = 0;
  for (int i = 1; i <= cur; i++)
    if (Num[i] >= l && Num[i] <= r && Ok[i]) Ans++;
  printf("%d\n", Ans);
  return 0;
}