#include <bits/stdc++.h>
int main() {
  int a, b, c, d;
  long x, cout = 0;
  scanf("%d %d %d %d %li", &a, &b, &c, &d, &x);
  for (long i = 1; i <= x; i++) {
    if (i % a == 0 || i % b == 0 || i % c == 0 || i % d == 0) cout++;
  }
  printf("%li\n", cout);
  return 0;
}
