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