#include <bits/stdc++.h>
using namespace std;
int func() { return 0; }
int main_() {
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  int ans = 0;
  for (int i = (1); i < (d + 1); i += (1)) {
    if (i % k == 0 or i % l == 0 or i % m == 0 or i % n == 0) {
      ans += 1;
    }
  }
  cout << ans;
  return 0;
}
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  main_();
  return 0;
}
