#include <bits/stdc++.h>
using namespace std;
int main() {
  long arr[200000];
  int temp1, temp2, temp3, temp4, num;
  cin >> temp1 >> temp2 >> temp3 >> temp4 >> num;
  int counter = 0;
  for (int i = 1; i <= num; i++) {
    arr[i] = 1;
  }
  for (int i = 1; i <= num; i++) {
    if (i % temp1 == 0) {
      arr[i] = 0;
    }
    if (i % temp2 == 0) {
      arr[i] = 0;
    }
    if (i % temp3 == 0) {
      arr[i] = 0;
    }
    if (i % temp4 == 0) {
      arr[i] = 0;
    }
  }
  for (int i = 1; i <= num; i++) {
    if (arr[i] == 0) {
      counter++;
    }
  }
  cout << counter << endl;
  return 0;
}
