#include <bits/stdc++.h>
using namespace std;
vector<char> A;
long long a, b, c, d, e, l, k, l1, k1, y, x;
string s, f;
bool ok = false;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> a >> b >> c >> d >> e;
  for (int i = 1; i <= e; ++i) {
    if (i % a == 0 || i % b == 0 || i % c == 0 || i % d == 0) {
      y++;
    }
  }
  cout << y << ' ';
  cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
  return 0;
}
