#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, l, m, n, d, x = 0;
  cin >> k;
  cin >> l;
  cin >> m;
  cin >> n;
  cin >> d;
  int arr[] = {k, l, m, n};
  for (int i = 1; i <= d; i++) {
    for (int j = 0; j < 4; j++) {
      if (i % arr[j] == 0) {
        x++;
        break;
      }
    }
  }
  cout << x;
  return 0;
}
