#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, n = 0;
  cout << "a???b?????????c????´???°????????°????±??????????" << endl
       << "a b c??¨??????????????§????????£?????\?????????????????????" << endl;
  cin >> a >> b >> c;
  do {
    (c % a++) || n++;
  } while (a <= b);
  cout << n;
  return 0;
}
