#include <bits/stdc++.h>
int main() {
  int k, l, m, n, i;
  long int d, count = 0;
  scanf("%d %d %d %d %ld", &k, &l, &m, &n, &d);
  for (i = 1; i <= d; i++) {
    if (i % k == 0)
      count++;
    else if (i % l == 0)
      count++;
    else if (i % m == 0)
      count++;
    else if (i % n == 0)
      count++;
  }
  printf("%ld", count);
  return 0;
}
