#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  vector<int> v;
  for (int i = 0; i < d; i++) {
    v.push_back(0);
  }
  for (int i = k - 1; i < d; i += k) {
    v[i] = 1;
  }
  for (int i = l - 1; i < d; i += l) {
    v[i] = 1;
  }
  for (int i = m - 1; i < d; i += m) {
    v[i] = 1;
  }
  for (int i = n - 1; i < d; i += n) {
    v[i] = 1;
  }
  int counter = 0;
  for (int i = 0; i < d; i++) {
    if (v[i] == 1) counter++;
  }
  cout << counter;
  return 0;
}
