#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, k, l, m, n, d, r, y = 0;
  cin >> k >> l >> m >> n >> d;
  r = min(min(k, l), min(m, n));
  for (i = r; i <= d; i++)
    if (i % k == 0 || i % l == 0 || i % m == 0 || i % n == 0) y++;
  cout << y;
  return 0;
}
