#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int x, y, z, a, b, count = 0;
  cin >> x >> y >> z >> a >> b;
  for (int i = 1; i <= b; i++) {
    if (i % a == 0 || i % z == 0 || i % y == 0 || i % x == 0) v.push_back(i);
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < v.size(); i++) {
    count++;
    if (v[i] == v[i + 1]) {
      v.erase(v.begin());
      count--;
      i--;
    }
  }
  cout << count;
}
