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 long long mod = 1000000007;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= mod;
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
const int N = 3010000;
int dp[N], a[N], vis[N];
int p[110], s, l, r, tot, ans;
void dfs(long long u, int cpr) {
  if (cpr >= 100) {
    a[tot++] = u;
    return;
  }
  int npr = cpr + 1;
  while (p[npr]) ++npr;
  while (u <= r) dfs(u, npr), u = u * cpr;
}
int main() {
  scanf("%d%d%d", &l, &r, &s);
  for (int i = 2; i <= 100; i++)
    for (int j = i + i; j <= 100; j += i) p[j] = 1;
  dfs(1, 2);
  sort(a, a + tot);
  for (int i = 0; i < tot; i++) dp[i] = s + 1;
  dp[0] = 1;
  vis[0] = 1;
  for (int j = 2; j < s + 1; j++) {
    int ptr = 0;
    for (int i = 0; i < tot; i++) {
      if (dp[i] <= s) vis[i] = 1;
      dp[i] += 1;
    }
    for (int i = 0; i < tot; i++) {
      if (dp[i] > s) continue;
      while (ptr < tot && 1ll * a[i] * j != a[ptr]) ++ptr;
      if (ptr >= tot) break;
      dp[ptr] = min(dp[ptr], dp[i] + 1);
    }
  }
  for (int i = 0; i < tot; i++)
    if (a[i] >= l) ans += vis[i];
  printf("%d\n", ans);
}