#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  int ans = 0;
  for (int i = 1; i <= d; i++) {
    int ok = 0;
    if (i % k == 0)
      ok = 1;
    else if (i % l == 0)
      ok = 1;
    else if (i % m == 0)
      ok = 1;
    else if (i % n == 0)
      ok = 1;
    ans += ok;
  }
  cout << ans << "\n";
  return 0;
}
