#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  set<int> s;
  for (int i = k; i <= d; i += k) {
    if (i <= d) s.insert(i);
  }
  for (int i = l; i <= d; i += l) {
    if (i <= d) s.insert(i);
  }
  for (int i = m; i <= d; i += m) {
    if (i <= d) s.insert(i);
  }
  for (int i = n; i <= d; i += n) {
    if (i <= d) s.insert(i);
  }
  cout << s.size() << endl;
  return 0;
}
