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