#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  while (a != 0 && b != 0) {
    if (a > b)
      a %= b;
    else
      b = b % a;
  }
  return a + b;
}
int main() {
  int k, l, m, n, d;
  cin >> k >> l >> m >> n >> d;
  int ans = 0;
  for (int i = (1); i < (d + 1); i++)
    if (i % k == 0 || i % l == 0 || i % m == 0 || i % n == 0) ans++;
  cout << ans << endl;
  return 0;
}
