#include <bits/stdc++.h>
using namespace std;
int main() {
  int d;
  int arr[4];
  for (int i = 0; i < 4; i++) {
    cin >> arr[i];
  }
  cin >> d;
  long ans[200000] = {0};
  int count = 0;
  for (int i = 0; i < 4; i++) {
    for (int j = 1; j <= d; j++) {
      if (j % arr[i] == 0) {
        ans[j] = 1;
      }
    }
  }
  for (int i = 1; i <= d; i++) {
    if (ans[i] == 1) {
      count++;
    }
  }
  cout << count;
  return 0;
}
