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;
int pr[30], tot, p, a[3001000], f[3001000], can[3001000], ans, l, r;
void dg(int w, long long mul, long long l) {
  if (pr[w] > p) {
    a[++tot] = mul;
    return;
  }
  for (; mul <= l; mul *= (long long)pr[w]) dg(w + 1, mul, l);
}
int main() {
  pr[1] = 2;
  pr[2] = 3;
  pr[3] = 5;
  pr[4] = 7;
  pr[5] = 11;
  pr[6] = 13;
  pr[7] = 17;
  pr[8] = 19;
  pr[9] = 23;
  pr[10] = 29;
  pr[11] = 31;
  pr[12] = 37;
  pr[13] = 41;
  pr[14] = 43;
  pr[15] = 47;
  pr[16] = 53;
  pr[17] = 59;
  pr[18] = 61;
  pr[19] = 67;
  pr[20] = 71;
  pr[21] = 73;
  pr[22] = 79;
  pr[23] = 83;
  pr[24] = 89;
  pr[25] = 97;
  pr[26] = 101;
  scanf("%d %d %d", &l, &r, &p);
  dg(1, 1, r);
  sort(a + 1, a + tot + 1);
  for (int i = 1; i <= tot; i++) f[i] = p + 1;
  f[1] = 1;
  for (int t = 2; t < p; t++) {
    ++f[1];
    for (int i = 1, j = 1; j <= tot; i++) {
      while (j <= tot && a[j] < a[i] * t) ++f[++j];
      if (j > tot) break;
      if (f[i] < f[j] - 1 && a[i] * t == a[j]) f[j] = f[i] + 1;
      if (f[j] <= p) can[j] = 1;
    }
  }
  for (int i = 1; i <= tot; i++)
    if (can[i] && l <= a[i] && r >= a[i]) ++ans;
  printf("%d", ans);
  return 0;
}