#include <bits/stdc++.h>
using namespace std;
void print(int &i) { cout << i << " "; }
bool even(int i) { return i % 2 == 0; }
bool odd(int i) { return i % 2 != 0; }
string RS(string s) {
  string reverse;
  for (int i = s.length() - 1; i >= 0; i--) reverse.push_back(s[i]);
  return reverse;
}
int main() {
  int k, l, m, n, d, a;
  while (cin >> k >> l >> m >> n >> d) {
    a = d;
    for (int i = 1; i <= d; i++)
      if (i % k != 0 && i % l != 0 && i % m != 0 && i % n != 0) a--;
    cout << a << endl;
  }
  return 0;
}
