#include <bits/stdc++.h>
int d;
int damage[5];
int damagedSum;
int main() {
  scanf("%d", &damage[0]);
  scanf("%d", &damage[1]);
  scanf("%d", &damage[2]);
  scanf("%d", &damage[3]);
  scanf("%d", &d);
  int dragon[100000] = {0};
  for (int i = 1; i <= d; i++) {
    for (int j = 0; j < 4; j++) {
      if (i % damage[j] == 0) dragon[i] = 1;
    }
    if (dragon[i] == 1) damagedSum++;
  }
  printf("%i", damagedSum);
  return 0;
}
