#include <bits/stdc++.h>
bool vet[100010];
using namespace std;
int main() {
  int a, b, c, d, n, i;
  scanf("%d %d %d %d %d", &a, &b, &c, &d, &n);
  for (i = 0; i <= n; i++) vet[i] = 0;
  for (i = a; i <= n; i += a) vet[i] = true;
  for (i = b; i <= n; i += b) vet[i] = true;
  for (i = c; i <= n; i += c) vet[i] = true;
  for (i = d; i <= n; i += d) vet[i] = true;
  int count = 0;
  for (i = 0; i <= n; i++)
    if (vet[i]) count++;
  printf("%d\n", count);
  return 0;
}
