#include <bits/stdc++.h>
using namespace std;
void pre() {}
void solve1() {
  long long k, l, m, n, d, count = 0;
  cin >> k >> l >> m >> n >> d;
  for (long long i = (long long)1; i < (long long)(d + 1); i++) {
    if (!(i % k) || !(i % l) || !(i % m) || !(i % n)) {
      count++;
    }
  }
  cout << count << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  pre();
  long long t = 1;
  while (t--) {
    solve1();
  }
  return 0;
}
