#include <bits/stdc++.h>
using namespace std;
long long int readint();
int main() {
  int k, l, m, n, d;
  while (cin >> k >> l >> m >> n >> d) {
    map<int, bool> mp;
    for (int i = 1; i <= d; i++) {
      mp[i] = 0;
    }
    for (int i = 1; i <= d; i++) {
      if (i % k == 0) mp[i] = 1;
      if (i % l == 0) mp[i] = 1;
      if (i % m == 0) mp[i] = 1;
      if (i % n == 0) mp[i] = 1;
    }
    int c = 0;
    for (int i = 1; i <= d; i++)
      if (!mp[i]) c++;
    cout << d - c << endl;
  }
  return 0;
}
long long int readint() {
  char r;
  bool start = false, neg = false;
  long long int ret = 0;
  while (true) {
    r = getchar();
    if ((r - '0' < 0 || r - '0' > 9) && r != '-' && !start) {
      continue;
    }
    if ((r - '0' < 0 || r - '0' > 9) && r != '-' && start) {
      break;
    }
    if (start) ret *= 10;
    start = true;
    if (r == '-')
      neg = true;
    else
      ret += r - '0';
  }
  if (!neg)
    return ret;
  else
    return -ret;
}
