#include <bits/stdc++.h>
using namespace std;
struct dragon {
  int index;
  bool get_punished;
};
int main() {
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  dragon arr[d];
  for (int i = 0; i < d; i++) {
    arr[i].index = i + 1;
    arr[i].get_punished = false;
  }
  for (int i = 0; i < d; i++) {
    if (arr[i].index % k == 0 || arr[i].index % l == 0 ||
        arr[i].index % m == 0 || arr[i].index % n == 0) {
      arr[i].get_punished = true;
    }
  }
  int counter = 0;
  for (int i = 0; i < d; i++) {
    if (arr[i].get_punished == true) counter++;
  }
  cout << counter << endl;
  return 0;
}
