#include <bits/stdc++.h>
using namespace std;
int num[1000000];
int check[1000000];
int main() {
  int k, l, m, n, d, cnt = 0;
  scanf("%d %d %d %d %d", &k, &l, &m, &n, &d);
  for (int i = 1; i <= d; i++) num[i] = i;
  for (int i = 1; k * i <= d; i++) check[k * i] = 1;
  for (int i = 1; l * i <= d; i++) check[l * i] = 1;
  for (int i = 1; m * i <= d; i++) check[m * i] = 1;
  for (int i = 1; n * i <= d; i++) check[n * i] = 1;
  for (int i = 1; i <= d; i++) {
    if (check[i] == 1) cnt++;
  }
  printf("%d\n", cnt);
  return 0;
}
