#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int a[4], d, sum = 0;
  scanf("%d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &d);
  vector<unsigned int> v(d, 0);
  for (unsigned int i = 0; i < 4; i++) {
    for (unsigned int j = (a[i] - 1); j < d; j += a[i]) {
      v[j]++;
    }
  }
  for (unsigned int j = 0; j < d; j++) {
    if (v[j] > 0) sum++;
  }
  printf("%d", sum);
  return 0;
}
