#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  bool arr[d + 1];
  memset(arr, true, sizeof(arr));
  for (int i = k; i <= d; i += k) arr[i] = false;
  for (int i = l; i <= d; i += l) arr[i] = false;
  for (int i = m; i <= d; i += m) arr[i] = false;
  for (int i = n; i <= d; i += n) arr[i] = false;
  int count = 0;
  for (int i = 1; i <= d; i++)
    if (!arr[i]) count++;
  cout << count << "\n";
  return 0;
}
