#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, k, m, n, d;
  cin >> l >> k >> m >> n >> d;
  int a[d], sum = 0;
  memset(a, 0, sizeof(a));
  for (int i = 0; i < d; i++) {
    if ((i + 1) % l == 0 || (i + 1) % k == 0 || (i + 1) % m == 0 ||
        (i + 1) % n == 0)
      sum++;
  }
  cout << sum;
}
