#include <bits/stdc++.h>
using namespace std;
int IT_MAX = 1 << 19;
int MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
const double PI = acos(-1);
const double ERR = 1e-10;
bool cmp(int a, int b) { return a > b; }
int main() {
  int k, l, m, n, d;
  scanf("%d", &k);
  scanf("%d", &l);
  scanf("%d", &m);
  scanf("%d", &n);
  scanf("%d", &d);
  int c[100005];
  memset(c, 0, sizeof(c));
  ;
  int sum = 0;
  for (int i = 1; i <= d; i++) {
    if (i % k == 0 || i % l == 0 || i % m == 0 || i % n == 0) {
      sum++;
      c[i] = 1;
    }
  }
  printf("%d", sum);
}
