#include <bits/stdc++.h>
using namespace std;
int k, l, v, n, d;
int main() {
  cin >> k >> l >> v >> n >> d;
  unordered_map<int, int> m;
  for (int i = k; i <= d; i += k) m[i]++;
  for (int i = l; i <= d; i += l) m[i]++;
  for (int i = v; i <= d; i += v) m[i]++;
  for (int i = n; i <= d; i += n) m[i]++;
  cout << m.size();
}
