#include <bits/stdc++.h>
int main() {
  int a, b, c, i, temp, n = 0;
  scanf("%d%d%d", &a, &b, &c);
  if (a > b) {
    temp = a;
    a = b;
    b = temp;
  }
  for (i = a; i <= b / 2; i++) {
    if (c % a == 0) n++;
  }
  printf("%d\n", n);
  return 0;
}
