#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, l, m, n, d;
  int q = 0;
  cin >> k >> l >> m >> n >> d;
  int *mas = new int[d];
  for (int i = 0; i < d; i++) {
    mas[i] = 0;
  }
  for (int i = 0; i < d; i++) {
    if ((i + 1) % k == 0) {
      mas[i] += 1;
    }
    if ((i + 1) % l == 0) {
      mas[i] += 1;
    }
    if ((i + 1) % m == 0) {
      mas[i] += 1;
    }
    if ((i + 1) % n == 0) {
      mas[i] += 1;
    }
  }
  for (int i = 0; i < d; i++) {
    if (mas[i] > 0) q += 1;
  }
  cout << q;
  return 0;
}
