#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int k, l, m, n, d, r = 0;
  cin >> k >> l >> m >> n >> d;
  if ((k > d || l > d) || (m > d || n > d)) {
    cout << "0"
         << "\n";
    return 0;
  }
  int s;
  for (int i = 1; i < d + 1; i++) {
    if ((i % k != 0 & i % l != 0) & (i % m != 0 & i % n != 0)) {
      r++;
    } else {
      continue;
    }
  }
  s = d - r;
  if (s == 0) {
    s = d;
    cout << s << "\n";
  } else {
    cout << s << "\n";
  }
}
