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